StupidBeauty
Read times:594Posted at:Mon Jul 1 23:47:42 2013
- no title specified

转载Android开发:系统自动实现开机启动

安卓系统中,软件的开机自动启动是通过监听 BOOT_COMPLETED 广播来实现的。

http://mobile.51cto.com/android-225571.htm

亮点

接下来,我们只需要在应用程序配置文件AndroidManifest.xml中注册这个Receiver来监听系统启动事件即可,如下所示:

<receiver android:name=".service.BootReceiver"> <intent-filter> <!-- 系统启动完成后会调用--> <action android:name="android.intent.action.BOOT_COMPLETED"> </action> </intent-filter> </receiver>

就这样,我们就实现了系统自启动,怎么样?是不是很简单?

大炮

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4