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
精彩评论