Hello, it seems I get a problem again and actually it has confused me for a long time.
Ok cut the crap. Here are the samples I can ndk and run on my cellphone: BackgroundTextureAccess, ImageTargets and VideoPlayback.
However others get a little bit of heart problem just can't run on my phone but no problem show up in ndk.
BTW I thought it was ndk problem coz that the first time I ran ImageTargets, the ndk appeared that I got missing files in D:\Development\Android\android-ndk-r8\platforms\android-8\arch-arm\usr\include\sys\syslimits.h and \include\memory.h . So I searched my file:android-ndk-r8 and picked up the same name file and used them. (The memory.h I picked up was 2.96Kb and syslimits.h was 330Kb) Luckly I can run 3 projects I've mentioned above.
What suprises me most is that sb who could run dominoes said that his memory.h is exactly 0kb, it's empty.
Any way I'm using ndk r8 and I have tried to figure it out for a long time. Anyone who can help me I will be appreciated forever.
Here is the logcat when I ran Dominoes on my cellphone.
07-29 18:44:14.491: I/dalvikvm(19602): Could not find method com.qualcomm.QCAR.QCAR.requiresAlpha, referenced from method com.qualcomm.QCARSamples.Dominoes.Dominoes.initApplicationAR
07-29 18:44:14.492: W/dalvikvm(19602): VFY: unable to resolve static method 70: Lcom/qualcomm/QCAR/QCAR;.requiresAlpha ()Z
07-29 18:44:14.492: D/dalvikvm(19602): VFY: replacing opcode 0x71 at 0x000a
07-29 18:44:14.495: I/dalvikvm(19602): Could not find method com.qualcomm.QCAR.QCAR.isInitialized, referenced from method com.qualcomm.QCARSamples.Dominoes.Dominoes.onConfigurationChanged
07-29 18:44:14.495: W/dalvikvm(19602): VFY: unable to resolve static method 65: Lcom/qualcomm/QCAR/QCAR;.isInitialized ()Z
07-29 18:44:14.495: D/dalvikvm(19602): VFY: replacing opcode 0x71 at 0x000b
07-29 18:44:14.497: I/dalvikvm(19602): Could not find method com.qualcomm.QCAR.QCAR.deinit, referenced from method com.qualcomm.QCARSamples.Dominoes.Dominoes.onDestroy
07-29 18:44:14.497: W/dalvikvm(19602): VFY: unable to resolve static method 63: Lcom/qualcomm/QCAR/QCAR;.deinit ()V
07-29 18:44:14.497: D/dalvikvm(19602): VFY: replacing opcode 0x71 at 0x0057
07-29 18:44:14.501: I/dalvikvm(19602): Could not find method com.qualcomm.QCAR.QCAR.onPause, referenced from method com.qualcomm.QCARSamples.Dominoes.Dominoes.onPause
07-29 18:44:14.502: W/dalvikvm(19602): VFY: unable to resolve static method 66: Lcom/qualcomm/QCAR/QCAR;.onPause ()V
07-29 18:44:14.502: D/dalvikvm(19602): VFY: replacing opcode 0x71 at 0x002e
07-29 18:44:14.503: I/dalvikvm(19602): Could not find method com.qualcomm.QCAR.QCAR.onResume, referenced from method com.qualcomm.QCARSamples.Dominoes.Dominoes.onResume
07-29 18:44:14.503: W/dalvikvm(19602): VFY: unable to resolve static method 67: Lcom/qualcomm/QCAR/QCAR;.onResume ()V
07-29 18:44:14.503: D/dalvikvm(19602): VFY: replacing opcode 0x71 at 0x0008
07-29 18:44:14.505: D/dalvikvm(19602): Trying to load lib /data/data/com.qualcomm.QCARSamples.Dominoes/lib/libQCAR.so 0x415b82a8
07-29 18:44:14.510: D/dalvikvm(19602): Added shared lib /data/data/com.qualcomm.QCARSamples.Dominoes/lib/libQCAR.so 0x415b82a8
07-29 18:44:14.511: W/dalvikvm(19602): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/qualcomm/QCARSamples/Dominoes/Dominoes;
07-29 18:44:14.511: W/dalvikvm(19602): Class init failed in newInstance call (Lcom/qualcomm/QCARSamples/Dominoes/Dominoes;)
07-29 18:44:14.511: D/AndroidRuntime(19602): Shutting down VM
07-29 18:44:14.512: W/dalvikvm(19602): threadid=1: thread exiting with uncaught exception (group=0x40c4a258)
07-29 18:44:14.518: E/AndroidRuntime(19602): FATAL EXCEPTION: main
07-29 18:44:14.518: E/AndroidRuntime(19602): java.lang.ExceptionInInitializerError
07-29 18:44:14.518: E/AndroidRuntime(19602): at java.lang.Class.newInstanceImpl(Native Method)
07-29 18:44:14.518: E/AndroidRuntime(19602): at java.lang.Class.newInstance(Class.java:1319)
07-29 18:44:14.518: E/AndroidRuntime(19602): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
07-29 18:44:14.518: E/AndroidRuntime(19602): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1911)
07-29 18:44:14.518: E/AndroidRuntime(19602): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2023)
07-29 18:44:14.518: E/AndroidRuntime(19602): at android.app.ActivityThread.access$600(ActivityThread.java:127)
07-29 18:44:14.518: E/AndroidRuntime(19602): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1174)
07-29 18:44:14.518: E/AndroidRuntime(19602): at android.os.Handler.dispatchMessage(Handler.java:99)
07-29 18:44:14.518: E/AndroidRuntime(19602): at android.os.Looper.loop(Looper.java:137)
07-29 18:44:14.518: E/AndroidRuntime(19602): at android.app.ActivityThread.main(ActivityThread.java:4503)
07-29 18:44:14.518: E/AndroidRuntime(19602): at java.lang.reflect.Method.invokeNative(Native Method)
07-29 18:44:14.518: E/AndroidRuntime(19602): at java.lang.reflect.Method.invoke(Method.java:511)
07-29 18:44:14.518: E/AndroidRuntime(19602): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
07-29 18:44:14.518: E/AndroidRuntime(19602): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
07-29 18:44:14.518: E/AndroidRuntime(19602): at dalvik.system.NativeStart.main(Native Method)
07-29 18:44:14.518: E/AndroidRuntime(19602): Caused by: java.lang.NoClassDefFoundError: com/qualcomm/ar/pl/CameraPreview
07-29 18:44:14.518: E/AndroidRuntime(19602): at java.lang.Runtime.nativeLoad(Native Method)
07-29 18:44:14.518: E/AndroidRuntime(19602): at java.lang.Runtime.loadLibrary(Runtime.java:368)
07-29 18:44:14.518: E/AndroidRuntime(19602): at java.lang.System.loadLibrary(System.java:535)
07-29 18:44:14.518: E/AndroidRuntime(19602): at com.qualcomm.QCARSamples.Dominoes.Dominoes.loadLibrary(Dominoes.java:796)
07-29 18:44:14.518: E/AndroidRuntime(19602): at com.qualcomm.QCARSamples.Dominoes.Dominoes.<clinit>(Dominoes.java:107)
07-29 18:44:14.518: E/AndroidRuntime(19602): ... 15 more
07-29 18:44:14.518: E/AndroidRuntime(19602): Caused by: java.lang.ClassNotFoundException: com.qualcomm.ar.pl.CameraPreview
07-29 18:44:14.518: E/AndroidRuntime(19602): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
07-29 18:44:14.518: E/AndroidRuntime(19602): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
07-29 18:44:14.518: E/AndroidRuntime(19602): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
07-29 18:44:14.518: E/AndroidRuntime(19602): ... 20 more
07-29 18:44:16.284: E/Parcel(19602): Reading a NULL string not supported here.
07-29 18:44:16.286: I/Process(19602): Sending signal. PID: 19602 SIG: 9
Thanks - its working now for all samples :)