A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
auto lock application after fixed time
Joined: Jan 22, 2008
Aug 04, 2009 08:37:13
I want to know if there is a way to get the notification for inactivity timer.
My scenario is as
If user remains idle for 1 min. then I should get the notification so that I can exit the application.
How does the emulator/device gets the notification of idleness and the back light goes dim?
Can someone please guide me how to implement it or point to a sample application.
Thanks in advance
Joined: Jun 09, 2009
Oct 12, 2009 05:02:55
You can use the combination of WakeLock and onUserInteraction() method to accomplish this.
I agree. Here's the link:
subject: auto lock application after fixed time
File Access from a Directory.
How to find the Browser Idle time?
Alerting the user about Session expiry after idle-time
User Idle Time?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015