0

Is it possible when a user shuts down his phone while the app is running on the background to reopen the app when they start the phone?

I read something about putting an intent in user manifest but i couldn't find the solution for my problem..

anyone who knows how to do this?

ligi
  • 39,001
  • 44
  • 144
  • 244
Rikkert09
  • 190
  • 1
  • 1
  • 11

2 Answers2

0

Go through this link...

Broadcstrecevier can help you.

broadcastreceiver in case of android device switched off and on not working

Community
  • 1
  • 1
Utpal Sharma
  • 326
  • 2
  • 14
0

1) You should to create BroadcastReceiver like this link: Trying to start a service on boot on Android

2) Start activity from Bradcastreceiver like this: Start Activity inside onReceive BroadcastReceiver

I hope this helps

Community
  • 1
  • 1
winston
  • 875
  • 1
  • 8
  • 15