Android Question Best practice for foreground service at boot

Num3

Active Member
Licensed User
Longtime User
With the changes made to use receivers, what is the best practice to start a foreground service at boot (in example: background location tracking) ?
Is it using the #StartAtBoot: True in the service, or creating a receiver for android.intent.action.BOOT_COMPLETED and then start the service from that receiver when the intent comes in?
 

Similar Threads

Replies
48
Views
53K
Replies
15
Views
56K
  • Locked
  • Article Article
Replies
22
Views
70K
  • Article Article
Android Tutorial Service Modules
Replies
185
Views
254K
Back
Top