简体   繁体   中英

How can I have a broadcast receiver launched when an app is installed?

I want to be able to activate a broadcast receiver right when an app is installed from the play store. What is the best way to do this?

I want to be able to activate a broadcast receiver right when an app is installed from the play store. What is the best way to do this?

This is not supported on any version of Android. And, on Android 3.1+, none of your BroadcastReceiver s will run until something explicitly runs one of your components, such as the user launching an activity of yours from the home screen's launcher.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM