Log in or register to post comments

Dominoes example doesn't show overlay dominoes on LG Black

November 20, 2012 - 4:27am #1

Hi Experts,

I ran into a issues for my application built using the Dominoes sample. I changed the screen orientation to "Portrait only" mode. On press of "Clear" button, I redirect user to another website. When user comes back to camera view (by pressing the back button), the dominoes are no longer visible. I also noticed that the camera input is shown in Landscape mode instead.

This problem is reproducable on "LG Optimus Black P970" devices only. I tried to replicate this on Sony Xperia, Samsung Galaxy S2, HTC One - they all work just fine. 

I'll happy to provide code snippets, or logs for this.

In deep mess since this is delaying the launch of a customer product. 

 

Best regards,

lucky

Dominoes example doesn't show overlay dominoes on LG Black

November 27, 2012 - 1:29am #5

Hi, you could try that approach, completely deinitializing QCAR and then reinitialize it from scratch, without quitting the activity; though, I never testd such an approach, and not entirely sure if it will work, but you can certainly give it a try.

Another possiblity could be the following:

Create a main activity which is not the QCAR one, but just a sort of "Introduction screen" or "Splash screen" activity; this is a very simple activity that does almost nothing except showing a simple android Layout with some introductory text or image, and maybe just a "Start QCAR" button or similar.

From the main "introduction" activity above, you can then start the QCAR activity via an intent (e.g. when pressing the "Start QCAR" button)

Then, in your "problematic" scenario, you can exit the QCAR activity rather than the entire App, i.e. you will be brought to the "Introductory" activity.

You could then implement some mechanism so that in such a circumstance, the "Introductory" activity knows that it needs to restart the "QCAR" activity automatically, maybe also showing a Dialog or a Toast message saying "Restarting QCAR..." or something, so that the user is notified of what is happening.

In this thread you can find some techniques on how to do that:

http://stackoverflow.com/questions/2486934/programmatically-relaunch-recreate-an-activity

 

I hope this helps.

 

 

Dominoes example doesn't show overlay dominoes on LG Black

November 26, 2012 - 10:48am #4

Thanks for the update!

Instead of exiting the app, would it be possible to navigate to some other view and come back to the Camera view later, may be we can try to reinitialise the QCAR? If we exit the app, it might leave the user wondering what went wrong.

Please advice.

Best regards,

lucky

Dominoes example doesn't show overlay dominoes on LG Black

November 26, 2012 - 3:42am #3

Hi,

just a quick update: after investigating internally, it turns out that that situation you describe is a known issue for that specific LG device; our team is aware of that; at the moment a fix for that issue is not available.

One possible work-around (that has significant impact on the app, though) is to exit the app onPause. This ensures that all views are reconstructed and prevents the surface reordering problem when restarting. 

Dominoes example doesn't show overlay dominoes on LG Black

November 20, 2012 - 8:17am #2

Hi lucky,

thanks for reporting this issue; we are currently investigating it, I will keep you posted.

 

Log in or register to post comments