I have a question related to the gps system in android.
I want to have the following functionality in my android app:
-Once the application is installed on the android device then it is always running in the background.
-I have a gps enabled android device then if I am 300-400 meters away from a particular address(Where address means we have provided the address to the application for finding location) then a popup appears on the screen stating I am x meters away from the target. (I would want this popup to occur every time I am 100m closer)
I have tried looking on Google for the correct way to do this but I have been unsuccessful and any help would be appreciated.
My main problems are:
1)Always having my program running in the background.
2)Have a popup to notify the user.
3)How to calculate my distance from a particular location.