I have used the below link to get Latitude & Longitude. If GPS or Network are not able to get the value means I got fatal exception in Timer-0
What is the simplest and most robust way to get the user's current location on Android?
How to handle when data unavailabilty?