Take the 2-minute tour ×

I have an application in which there will be a service continuously running in background and on certain conditions service should call an activity or pop-up a dialog. I think this is possible.

The question is, in case device keyguard gets on say after 2 minutes of idle time then will the service continue running in background. And what will happen when the condition of opening pop-up or Activity is reached.

Does anyone have any solution to this?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Your popup will popup below the keyguard. That is the point of the keyguard. So the user doesn't accidently hit your important dialog without actually reading it first.

Once the user unlocks the phone, your popup will be displayed.

share|improve this answer
Yes, but the op was asking how to get past it, if possible. There are uses cases outside pockets. –  Tommi Kyntola Dec 15 '11 at 9:34
add comment

Your Answer


