开发者

How to autoload bash script on Android?

开发者 https://www.devze.com 2023-04-02 12:31 出处:网络
Autoload i mean when i reboot just like ~/.bash_profile, /etc/bashrc, etc on linux Where should i place my script?

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

精彩评论

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