"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Starting the native activity from an other activity

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

 

AlessandroB

Wed, 02/19/2014 - 07:42

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