By vinny82
on Wed, 04/03/2013 - 19:31
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
Failed to Initialze QCAR
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...
Failed to Initialze QCAR
Hi ,
I have not done any change in INITQCARTask . Already checked it.
Regards
Failed to Initialze QCAR
Are you sure you have not duplicated this code ?
Failed to Initialze QCAR
This code only exists in INIT_QCAR in my app. it executes QCAR task.
case APPSTATUS_INIT_QCAR:
Failed to Initialze QCAR
Ok. Thanks. Can you also check that you have this code in your onCreate() method ?
Failed to Initialze QCAR
It's there.
OnCreate Code
Failed to Initialze 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..
Failed to Initialze QCAR
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
Failed to Initialze QCAR
According to Android LifeCycle , on pressing home button only onPause is called.
Failed to Initialze QCAR
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.
Failed to Initialze QCAR
Ok, well, that's good to hear.