简体   繁体   English

是否可以在新项目/应用程序中添加现有项目?

[英]Is it possible to add an existing project in new project/application?

I have an android project and I want to include in it, my camera project/application.我有一个 android 项目,我想在其中包含我的相机项目/应用程序。
Is there any way to proceed without having to copy each and every file of my camera application in the new project?有没有什么方法可以继续而不必在新项目中复制我的相机应用程序的每个文件?
Any kind of help will be highly appreciated!任何形式的帮助将不胜感激!

the easiest way to do this is to launch your camera application installed on your device in your new project.最简单的方法是在新项目中启动安装在设备上的相机应用程序。 i think you can launch it this way:我认为你可以这样启动它:

Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.package.address");
if (launchIntent != null) { 
    startActivity(launchIntent);
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM