Log in or register to post comments

Problem creating new App

September 22, 2011 - 12:58am #1

Hi All,

I wat to create an App based on FramMarkers App in Samples....I've called it FutureLogisApp and I put it in samples directory

I've substituted every "FrameMarker" string with "FutureLogisApp"....but when I run the application this exception is show in LogCat

09-22 11:52:43.203: ERROR/QCAR(3385): The library libFrameMarkers.so could not be loaded
09-22 11:52:44.358: WARN/dalvikvm(3385): No implementation found for native Lcom/qualcomm/QCARSamples/FutureLogisApp/FutureLogisApp;.setActivityPortraitMode (Z)V


09-22 11:52:44.373: ERROR/AndroidRuntime(3385): java.lang.UnsatisfiedLinkError: setActivityPortraitMode
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at com.qualcomm.QCARSamples.FutureLogisApp.FutureLogisApp.setActivityPortraitMode(Native Method)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at com.qualcomm.QCARSamples.FutureLogisApp.FutureLogisApp.initApplication(FutureLogisApp.java:531)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at com.qualcomm.QCARSamples.FutureLogisApp.FutureLogisApp.updateApplicationStatus(FutureLogisApp.java:384)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at com.qualcomm.QCARSamples.FutureLogisApp.FutureLogisApp.onCreate(FutureLogisApp.java:256)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at android.os.Handler.dispatchMessage(Handler.java:99)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at android.os.Looper.loop(Looper.java:123)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at android.app.ActivityThread.main(ActivityThread.java:4627)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at java.lang.reflect.Method.invokeNative(Native Method)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at java.lang.reflect.Method.invoke(Method.java:521)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
09-22 11:52:44.373: ERROR/AndroidRuntime(3385):     at dalvik.system.NativeStart.main(Native Method)

Where I'm wrong?

Re: Problem creating new App

September 24, 2011 - 5:25am #9

Thanks ksiva :)
I'll try :)

Re: Problem creating new App

September 24, 2011 - 4:53am #8

Sure, your application could use all 512 frame markers, but you'll probably only be able to track five or so at a time (that's just a limitation of how many you can fit on the screen at a decent distance).

- Kim

Re: Problem creating new App

September 23, 2011 - 2:10pm #7

Is possible to have more than five maker one at time?

Re: Problem creating new App

September 23, 2011 - 8:26am #6

I've fixed it with a reboot of my device :D...

Re: Problem creating new App

September 22, 2011 - 7:53pm #5

QCAR applications want an internet connection at least once to download device-specific settings. Is it possible you ran the FrameMarkers sample while you had an internet connection, and your custom project while offline? Connect your device to the internet and try again.

- Kim

Re: Problem creating new App

September 22, 2011 - 9:53am #4

New Problem....

I launch FrameMarkers application and all is ok the application start fine :)

I launch My application based on FrameMarkers and it want internet connection -.-....

help!!

Re: Problem creating new App

September 22, 2011 - 1:39am #3

Ok...now it's ok...so I'll write how to create an app based on an existing App

1) Copy The base sample app in another directory
2) Import it in eclipse
3) Change name If you want but if you change the name you must:
- change jni file (be careful in signature function in cpp file)
- change the NATIVE_LIB_SAMPLE variable in main java file
- change import in java file
- look in android manifest to rebuild all link to activities
- rebuild with ndk-build the jni
- clean the solution in eclipse
- the application show you the exception above refresh the solution

;)

Re: Problem creating new App

September 22, 2011 - 1:07am #2

I've do a refresh in Eclipse project but another new exception :D

09-22 12:05:06.168: ERROR/AndroidRuntime(3801): FATAL EXCEPTION: main
09-22 12:05:06.168: ERROR/AndroidRuntime(3801): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.qualcomm.QCARSamples.FutureLogisApp/com.qualcomm.QCARSamples.FutureLogisApp.FutureLogisApp}: java.lang.ClassNotFoundException: com.qualcomm.QCARSamples.FutureLogisApp.FutureLogisApp in loader dalvik.system.PathClassLoader[/data/app/com.qualcomm.QCARSamples.FutureLogisApp-1.apk]
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at android.os.Handler.dispatchMessage(Handler.java:99)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at android.os.Looper.loop(Looper.java:123)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at android.app.ActivityThread.main(ActivityThread.java:4627)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at java.lang.reflect.Method.invokeNative(Native Method)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at java.lang.reflect.Method.invoke(Method.java:521)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at dalvik.system.NativeStart.main(Native Method)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801): Caused by: java.lang.ClassNotFoundException: com.qualcomm.QCARSamples.FutureLogisApp.FutureLogisApp in loader dalvik.system.PathClassLoader[/data/app/com.qualcomm.QCARSamples.FutureLogisApp-1.apk]
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
09-22 12:05:06.168: ERROR/AndroidRuntime(3801):     ... 11 more
Log in or register to post comments