开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜