Hiren Dabhi
Hiren Dabhi

Reputation: 3713

how to check in my android app when switch on mobile device?

i want to get the event when mobile is switched on in my application. so, how i handle/get switched on event of mobile in my app, is it necessary to run my app in background?

can anyone help me?

Thanks in advance.

Upvotes: 1

Views: 189

Answers (1)

jimkberry
jimkberry

Reputation: 1327

Have a look at the discussion in this thread:

Is it possible to write an Android broadcast receiver that detects when the phone wakes up?

Upvotes: 1

Related Questions