开发者

How to autoload bash script on Android?

Autoload i mean when i reboot just like ~/.bash_profile, /etc/bashrc, etc on linux Where should i place my script?

I ha开发者_JAVA技巧ve google it but hard to find out.


What action you would like to do after reboot? Android uses a broadcast intent android.intent.action.BOOT_COMPLETED, which signalizes that the boot has been finished. You can create a Service, which will be registered to start by this broadcast and it can make some action you need.

Here you can find an example of such service: Start Service at boot

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜