I have a device management application, which essentially runs as a service in the background from boot. I’d like to start this application immediately after installation. How do I achieve this?
I have a device management application, which essentially runs as a service in the
Share
You cannot do this — there is no way to automatically start your service merely because it was installed.
The application must first be invoked by the user through some sort of activity. Or, you are going to need to hook into some relevant broadcast
Intentvia the manifest, so you can get control when one of those events occur and kick off your service that way. Or, you are going to need to ask the user to reboot so yourBOOT_COMPLETEDIntentfilter can get control.