Is there a way to trigger an intent when user is switching off his/her android phone ?
Asked
Active
Viewed 74 times
0
-
why do not user Services ? – Tigran Nov 07 '13 at 11:31
-
Can you please explain what u wan to do? I think you can only use background service like @Tigran said. – Shawn Thye Nov 07 '13 at 11:33
-
@Shawn and Tigran i want to stop the switching off if my application is downloading something or doing some critical processing. Or at-least prompt a user with a warning. – Vaibhav Ajay Gupta Nov 07 '13 at 14:54
-
http://stackoverflow.com/a/3814239/2654254 try something like this? – Shawn Thye Nov 08 '13 at 06:11
1 Answers
0
Try this link https://stackoverflow.com/a/2190184/2654254 ???
You can use BroadcastReceiver, It's explain well in this answer.
Sorry, my english is poor :)

Community
- 1
- 1

Shawn Thye
- 906
- 2
- 11
- 23