By dmichaud
on Tue, 02/18/2014 - 22:18
Hi all,
I've been developing an AR application with Unity and exported succesfully to Eclipse. I've been able to execute it from Eclipse, starting from the native activity, but when I try to start it from an other activity (a welcome one), I only see the Unity logo and then nothing, only the black screen and some errors in the log cat, but the application doesn't crash. These are the errors:
02-18 23:16:34.025: E/Unity(19807): Could not initialize the tracker.02-18 23:16:34.025: E/Unity(19807): 02-18 23:16:34.025: E/Unity(19807): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 53)02-18 23:16:34.025: E/Unity(19807): Could not initialize the tracker.02-18 23:16:34.025: E/Unity(19807): 02-18 23:16:34.025: E/Unity(19807): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 53) then more log lines without errors... 02-18 23:16:34.035: E/AR(19807): 2014-02-18 23:16:34: Failed to set hint 'HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS' because the ImageTracker has not been initialized. more no log errors, and finally... 02-18 23:16:34.360: E/AR(19807): 2014-02-18 23:16:34: CameraDevice::getCameraCalibration(): Failed to get camera calibration because the camera is not initialized. Does anyone know how to solve this? I've been Googling for hours and I found almost nothing :S Thank you in advance, Daniel
Starting the native activity from an other activity
Not sure what you are doing wrong, but have you checked these articles?
https://developer.vuforia.com/forum/faq/unity-how-can-i-extend-unitys-android-activity
https://developer.vuforia.com/forum/faq/unity-android-plugins
Starting the native activity from an other activity
First thing, thanks for answering so fast :D
So, I've checked those links, but this is a problem after all that. I'll try to explain it in a more easy way:
Starting the native activity from an other activity
If you look at this article:
Starting the native activity from an other activity
Nope, it doesn't work either. I get the same Unity logo screen and then only a black screen. The logCat still shows the same errors about not initializing the tracker:
Starting the native activity from an other activity
I solved it!!
Starting the native activity from an other activity
Great!