Service Start At Boot

madru

Active Member
Licensed User
Longtime User
Hi folks,

how can 'Service Start At Boot' be implemented in code?

I like to have a checkbox where the user can enable/disable start @ boot

THX

M
 
That is not possible. You have to check the setting in your service and if the user selected not to start the service just stop it.

Gesendet von meinem LG-P500 mit Tapatalk 2
 
Upvote 0
There is a way around it, if it's important enough: in your main app, use your checkbox as mentioned, and save the results in a data file. Use a second app that always starts on boot up and checks this data file and then determines to also start your main app or not. But I don't know if you want to have second app or not.
 
Upvote 0

Similar Threads

Replies
1
Views
1K
  • Question Question
Android Question start on boot
Replies
8
Views
4K
Replies
48
Views
52K
Replies
15
Views
56K
Back
Top