Search code examples
androidandroid-serviceandroid-broadcast

Start a service automatically when app installed to device


I want to start a service automatically when the app is installed. Service is working properly after a launch or after a device boot. So, is it possible to launch a service after installation of the app?


Solution

  • Google shows the correct answer as the first hit so ... have you done some research on this? How to start a Service when .apk is Installed for the first time

    Summary: you can't do this.