BroadcastReceivers class:擴播的資料接收器,需在AndroidManifest.xml 進行註冊,
Tag 為 receiver.
Broadcast receivers are Android's implementation of the Publish/Subscribe messaging pattern, or more precisely, the Observer pattern.
extends BroadcastReceiver
AndroidManifest.xml
Boot 完成後,觸發 UpdateServer
Intent Filter 把它想成過慮條件用,符合條件才執行。
Broadcast 中自行自訂的「標記」一律需在 AndroidManifest.xml
uses-permission 加再註冊。
關鍵字
intent broadcast
http://blog.csdn.net/yaolingrui/article/details/7337978 (应用程序中Broadcast Receiver的两种注册方法及比较)
http://blog.csdn.net/hitlion2008/article/details/6966569 (Intent & Intent Filter)
O'REILLY Learning Android.
0 意見:
張貼留言