简体   繁体   English

如何一起编译Android 4.1 / 4.2 Camera + Gallery App

[英]How to compile Android 4.1/4.2 Camera+Gallery App together

The Android Camera and Gallery has been merged in Android 4.1 and above. Android相机和相册已合并到Android 4.1及更高版本中。

Now, I want to play around with the Android 4.2 Camera app, and try to port it on my older devices. 现在,我想玩Android 4.2相机应用程序,并尝试在我的旧设备上移植它。

How do I compile https://android.googlesource.com/platform/packages/apps/Gallery2/ and https://android.googlesource.com/platform/packages/apps/Camera/ 我如何编译https://android.googlesource.com/platform/packages/apps/Gallery2/https://android.googlesource.com/platform/packages/apps/Camera/

As far as the sources etc are concerned, both of these should be compiled together.However, the Camera source doesn't have a manifest, which makes it impossible to port on Eclipse. 就源等问题而言,这两者都应该编译在一起。但是,Camera源没有清单,这使得无法在Eclipse上移植。

So, I need help with: 所以,我需要帮助:

1.How to import both of these projects? 1.如何进口这两个项目?

2.How to join them together as one single apk (I tried merging the res and src folders, but still a lot of compiling errors). 2.如何将它们作为一个单独的apk加入它们(我尝试合并res和src文件夹,但仍然有很多编译错误)。

3.The Camera source, while calling up popup menus, make reference to R.styleable references to populate the list, instead of normal arrays, which I'm unable to fix. 3. Camera source在调用弹出菜单时,引用R.styleable引用来填充列表,而不是普通的数组,我无法修复。 The problem becomes manifold when I set the build target to ICS, because the R.styleable references refuse to cooperate. 当我将构建目标设置为ICS时,问题变得多种多样,因为R.styleable引用拒绝合作。 Deleting them brings up empty popup menus. 删除它们会弹出空的弹出菜单。

Any help would be greatly appreciated. 任何帮助将不胜感激。 Thank you. 谢谢。

您可以在Java项目中拥有多个源文件夹(在这个意义上,Android项目是Java项目的子类型)。

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

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