Starting an apk on boot in Android
Is there a way t开发者_如何学编程o 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.
精彩评论