android - Broadcast Receiver set for whole application -
i have 2 activities - main activity , sec activity main activity switches sec activity on click of button.
i have implemented broadcast receiver bluetooth in main activity, works on main activity. how declare receiver whole application , must able unregister on onpause method whole application.
for this, have register broadcast receiver in each activity , onpause(), unregister it.
for example, can follow link : http://www.compiletimeerror.com/2013/03/android-broadcast-receiver-in-detail.html#.vc-turanhiu
but in whole application , have in each activity
android bluetooth broadcast
No comments:
Post a Comment