I have a sticky service. As a test, I have throw runtime exception. Strangely, when the "App has stopped working" dialog pops up on the homescreen, if I press ok, the service seems restart or continue running. If I don't press okay and leave the dialog on the screen, the Service seems to be killed and never comes back. Can anyone explain this, and how to have my service restart itself?
Asked
Active
Viewed 56 times
0
-
`if I don't press okay and leave the dialog on the screen, the Service seems to be killed and never comes back.` what are you trying to achieve? the dialog will not to stay on screen forever (user will dismiss it either by pressing ok or clicking outside the dialog! – Muhammad Babar Feb 12 '16 at 07:25