1

How to call an activity after the device wakes up from sleep

view story
linux-howto

http://stackoverflow.com – I need to call a specific activity of my app if the device is put to sleep. However, onResume and onRestart also call the activity when an activity is reached twice, and this can't happen. Is an easy way to accomplish this, because I can't find a way to do this, and the other answers on the site seem to deal with services in the same activity, rather than just starting a new activity. Seems I need to clarify slightly. I have an activity, a lock screen for the App that requests a PIN from the user. I want this to be called only after (or before, I supposed it doesn't really matter) the device (HowTos)