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.

AppGameKit Classic Chat / Determine the amount of time the app has been in the background?

Author
Message
Naphier
13
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 19th Nov 2013 15:26
I swear I was able to do this before and it worked... maybe my brain is not working well this morning. Can someone help?

I just want to know how long the app has been in the background so if it has been there for more than a minute I can enforce that it gets data from the server.

Right now I'm trying something like this:
discard = GetResumed()


It seems that this always gets the lastTime before GetResumed()... I guess that is sort of to be expected as it needs to complete the loop, but I just can't see how to do it right.
Thanks!

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 19th Nov 2013 15:31
How about this:


That might do it.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Naphier
13
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 19th Nov 2013 15:39
That did it! Thanks!! Need more

Naphier
13
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 19th Nov 2013 16:14
meh... still not very stable
I'll have to determine a better way to do it

Login to post a reply

Server time is: 2024-05-20 09:26:34
Your offset time is: 2024-05-20 09:26:34