android - Alarm when device hasn't been touched by user in x hours? -



android - Alarm when device hasn't been touched by user in x hours? -

is there way alarm fire time after user has lastly touched device? i.e. when device has been in users pocket while, or when user sleeping.

i need db-locking update 2 minutes every few days, preferably when user doesn't want utilize app.

edit: have no clue when user not using app, since it's used anytime during day, before going bed , after waking up.

currently i'm picking random time between 07:00 , 08:00 every 3 days (using alarmmanager, restarting on boot, etc), hoping user doesn't need feature @ time of day, i'm pretty sure will.

android android-alarms

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -