I have get the location through GPS or Network the code referred from the link
What is the simplest and most robust way to get the user's current location on Android?
in my app used Service and Alarm Manager. Every two minutes once start the GPS listener and get the location. If the GPS data is not available the app get closed and the service is not running every two minutes.
If the GPS data is not available, I need to, the app is not get closed, after two minutes automatically start to GPS Listener to get geo data.
Please give any idea to fix that issue.