What is the best way of create BroadcastReceiver?
I have spent few days to work on Service + BroadcastReceiver, but still cannot make it perfect. I hope someone can help, thanks! I am writing a App that show user current location on map(The map that I wrote, not Google Map) and send out Notification alarm when user go inside a predefined zone. In my code. there are two main objects. A GPS service and Main Activity. The GPS service broadcast location when location changed. The Main Activity receive the latest location by BroadcastReceiver. I have done some researches on how to register BroadcastReceiver. There are two ways that I found: Method