BrodcastIntent(talk
about more on charceter 6)
Sender:
sendBroadcast
receiver:
1.Create a
Broadcastreceiver class
2.Register:use xml
or code:registerReceiver()
3.defined intent-filter
Talk about what broadcast intent you want to
receive
byXML
or
BY code(dynamic method):
IntentFilter if=new IntentFilter();
Manifest vs Dynamic
Manifest
|
Dynamic
|
|
App running
|
O
|
O
|
App terminated
|
O(will start the
app)
|
X(app closed,
will not receive the intent)
|