I know you can start a service on Boot, but how do I start the service after the app has been installed or reinstalled?
I would like to start the service once the app is put on device by Debug/Run of Eclipse.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You do not get control after an install, so you have to start the service through your activity or something.
There’s an
ACTION_PACKAGE_REPLACEDbroadcastIntentyou can monitor for the reinstall scenario, though I have not tried it.