简体   繁体   中英

Starting an apk on boot in Android

Is there a way to start an Android application on boot? Perhaps by adding something to the init.rc script?

If by "Android application", you mean something with a user interface, make it the home screen.

If by "Android application", you mean you have a small hunk of code you want to run around the time of boot, set up a BroadcastListener for the BOOT_COMPLETED broadcast.

You would only manipulate init.rc if you are doing things like creating custom firmware.

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