开发者

Starting Activity on Startup

开发者 https://www.devze.com 2023-03-01 04:15 出处:网络
Hey friends, I want to know how to start a开发者_Python百科n activity on startup of the phone. ?You need to register Broadcast receiver with intent filter \"android.intent.action.BOOT_COMPLETED\"

Hey friends, I want to know how to start a开发者_Python百科n activity on startup of the phone. ?


You need to register Broadcast receiver with intent filter "android.intent.action.BOOT_COMPLETED" Good example can can be found here http://www.androidcompetencycenter.com/2009/06/start-service-at-boot/


You have to register Your application for Broadcast

http://www.androidcompetencycenter.com/2009/01/basics-of-android-part-ii-intent-receivers/

0

精彩评论

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