"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

Failed to Initialze QCAR

Hi

I ahve craeted my own application integrating  VideoPlayback and  ImageTarget.

On pressing Home button and then opening again , i m getting message " failed to initalize QCAR"

 

please tell me what can be possible causes for same?

i have alraedy checked onPause and onResume and they seem to be ok

AlessandroB

Wed, 04/03/2013 - 19:52

Hi, that message comes from the InitQCARTask (see the original code in ImageTargets.java or VideoPlayback.java);

you should check that the InitQCARTask is executed in the same way as in the original samples...

 

This code only exists  in INIT_QCAR in my app. it executes QCAR task.

 

case APPSTATUS_INIT_QCAR:

Ok, I see. So, the initialization of QCAR happens because the onCreate is called (when launching again after you pressed the Home button);

however, when pressing the HOME button, the onDestroy is not called, so this is the root of the issue..

Hi,

According to Android LifeCycle , on pressing home button only onPause is called. which is happening in my app and default playback app.

The error is coming in both seceneros , second time

1. you press home button and select app by clicking app icon in task manager

I was not able to find the issue. 

So , I reintegrate Imagetarget Sample to VideoPlayback. Now everything is running fine.

I just hope that i should n't get this issue again.