开发者

Starting an apk on boot in Android

开发者 https://www.devze.com 2023-03-22 06:34 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号