[Android Apps and Games] eng.ala@gmail.com:
How to build the code?

Hi,

Thank you for sharing the source code.

Could you please give me a hint on how to build the source code?

I was trying to build the code on my local environment, but I'm not sure I got it right. I used Eclipse to build the code and push it to the phone. I get the following error when running the app:

10-08 22:50:45.615: E/AndroidRuntime(3875): FATAL EXCEPTION: main

10-08 22:50:45.615: E/AndroidRuntime(3875): java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.xplod.focal/org.cyanogenmod.focal.CameraActivity}: android.view.InflateException: Binary XML file line #218: Error inflating class org.cyanogenmod.focal.ui.ReviewDrawer

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.app.ActivityThread.access$600(ActivityThread.java:141)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.os.Handler.dispatchMessage(Handler.java:99)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.os.Looper.loop(Looper.java:137)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.app.ActivityThread.main(ActivityThread.java:5103)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at java.lang.reflect.Method.invokeNative(Native Method)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at java.lang.reflect.Method.invoke(Method.java:525)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at dalvik.system.NativeStart.main(Native Method)

10-08 22:50:45.615: E/AndroidRuntime(3875): Caused by: android.view.InflateException: Binary XML file line #218: Error inflating class org.cyanogenmod.focal.ui.ReviewDrawer

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.view.LayoutInflater.createView(LayoutInflater.java:620)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.view.LayoutInflater.inflate(LayoutInflater.java:492)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.view.LayoutInflater.inflate(LayoutInflater.java:397)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.view.LayoutInflater.inflate(LayoutInflater.java:353)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.app.Activity.setContentView(Activity.java:1895)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at org.cyanogenmod.focal.CameraActivity.onCreate(CameraActivity.java:167)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.app.Activity.performCreate(Activity.java:5133)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)

10-08 22:50:45.615: E/AndroidRuntime(3875):	... 11 more

10-08 22:50:45.615: E/AndroidRuntime(3875): Caused by: java.lang.reflect.InvocationTargetException

10-08 22:50:45.615: E/AndroidRuntime(3875):	at java.lang.reflect.Constructor.constructNative(Native Method)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at java.lang.reflect.Constructor.newInstance(Constructor.java:417)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at android.view.LayoutInflater.createView(LayoutInflater.java:594)

10-08 22:50:45.615: E/AndroidRuntime(3875):	... 22 more

10-08 22:50:45.615: E/AndroidRuntime(3875): Caused by: java.lang.NoClassDefFoundError: org.cyanogenmod.focal.ui.ReviewDrawer$ImageListAdapter

10-08 22:50:45.615: E/AndroidRuntime(3875):	at org.cyanogenmod.focal.ui.ReviewDrawer.initialize(ReviewDrawer.java:104)

10-08 22:50:45.615: E/AndroidRuntime(3875):	at org.cyanogenmod.focal.ui.ReviewDrawer.<init>(ReviewDrawer.java:82)

10-08 22:50:45.615: E/AndroidRuntime(3875):	... 25 more

I also have NDK installed and I can run native samples from OpenCV, etc. I tried to use ndk-build to build Android.mk file, but got

Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: ./jni/Android.mk

C:/android-ndk-r9/build/core/add-application.mk:176: *** Android NDK: Aborting..

. . Stop.

Thanks again!