简体   繁体   中英

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.

Now, I want to play around with the Android 4.2 Camera app, and try to port it on my older devices.

How do I compile https://android.googlesource.com/platform/packages/apps/Gallery2/ and 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.

So, I need help with:

1.How to import both of these projects?

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).

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. The problem becomes manifold when I set the build target to ICS, because the R.styleable references refuse to cooperate. Deleting them brings up empty popup menus.

Any help would be greatly appreciated. Thank you.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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