mobileLockIdleTimer Not Working

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Gene
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 75
Joined: Wed Mar 09, 2011 6:48 pm

mobileLockIdleTimer Not Working

Post by Gene » Sat Feb 16, 2013 1:09 am

Hi,

I am having trouble preventing my Android from going to sleep after a minute or so. According to the release notes, the "mobileLockIdleTimer" command should accomplish this, but it doesn't seem to work after issuing the command. Also, if I check the status using the mobileIdleTimerLocked() function after issuing the mobileLockIdleTimer command, it reports back that the timer is not locked (ie.e turned off). In any case, the phone still goes to sleep with after using both the lock and the unlock commands.

Has anyone had any success preventing their Android device(s) from sleeping, either with the lock command, or otherwise? Having the device time out should be a deal killer for a lot of apps. It certainly is for the one I'm working on, so I would really appreciate some help with this.

Thanks,

Gene

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: mobileLockIdleTimer Not Working

Post by Simon » Sat Feb 16, 2013 1:30 am

Hi Gene,
Check in the standalone settings make sure you have "Idle Timer" selected.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Gene
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 75
Joined: Wed Mar 09, 2011 6:48 pm

Re: mobileLockIdleTimer Not Working

Post by Gene » Sat Feb 16, 2013 2:52 am

Bingo! It works! Simon, you're a hero. You made my day.

Note to self: review the standalone settings and make sure I know what each of them really do.

Thanks,

Gene

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: mobileLockIdleTimer Not Working

Post by Simon » Sat Feb 16, 2013 3:13 am

Well if it made your day then it makes my day...
Ohhh infinite recursion... :D

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply