Monday, September 13, 2010

BroadcastReceiver的兩種註冊方式

1.在主Activity的onCreate()裡registerReceiver();
2.在Androidmanifest.xml裡寫<receiver>標籤

註︰如果要自訂Broadcast的Action訊息,只能用第1種方法

No comments: