Android Question start service at boot i don´t understand the problem

fanfalveto

Active Member
Licensed User
Longtime User
The service starts only if i install the program with the phone conected by usb, but if i install the program with b4a bridge not and if i intall downloading the apk either.
In manifest are commented some lines i try with this commented and not.
Any idea?
Thanks.
 

Attachments

  • startatboot.zip
    105.2 KB · Views: 152

fanfalveto

Active Member
Licensed User
Longtime User
Then how to hide an app icon and start the app and the next time only start the service and not the activity?
Any idea ?
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
I don't know what are you trying to accomplish, but once again, that service will not run unless the app runs at least once, you could create a widget instead, when the user adds the widget then the service will start, but if your intention is to hide an app and run it silently then it won't work.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
How did you create a service in the beginning ?
A service can not run without being called.
didn't test it, but try making a small app that calls the service, then make it run at boot just to call the service and then kill it.
good luck.
 
Upvote 0
Top