0

We can set a Screen Timeout in Settings App (Say 30 sec) (Settings --> Display --> Screen Timeout). If u keep the phone idle for 30 sec the phone will be locked.

Is it possible to create an Application which will listen the Idleness of the device and get triggered after a specific amount of time?

Note: I need to monitor the device idleness not my app's, i.e, i can use onUserInteraction() but this should be used at my activity level,but i need at my device level.

For example, I am running a service alone, User has launched a App (Say Facebook app) and he keeps the app open for 10 min, Now my service should recognize that the facebook app is idle for 10 min (As the Setting App recognizing)..

Sudarshan
  • 1,285
  • 3
  • 26
  • 35

0 Answers0