Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / T2 Gaining Focus again

Author
Message
keitaroguy
12
Years of Service
User Offline
Joined: 18th Nov 2011
Location:
Posted: 18th Jan 2012 18:41
My game won't run after it loses focus. Has anyone had the same issue? If so how did you fix it? I know Android should take care of the state so it shouldn't have this issue but has anyone been able to get through these issues?
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 13th May 2012 21:04
As of v1072, the GetResumed() command will return a 1 if the app has lost focus and then regained it.

So, the first thing that should be done in the main do loop is to check that value and behave appropriately.

In my case, when my game is in play mode (as opposed to menu mode), it places the game in pause and displays a paused message.

Cheers,
Ancient Lady

Login to post a reply

Server time is: 2024-03-29 07:42:55
Your offset time is: 2024-03-29 07:42:55