I am travelling through a forest, and GPS satellite is not reachable, once I exit from forest to the area where satellite signal is available, then I want to perform some operation. how should I write this logic?
Once satellite is available, onProviderEnabled() will be called. write your logic in that function.
onStatusChanged() with status AVAILABLE will be called, write your code there based on this status.
onStatusChanged() with status TEMPORARILY_UNAVAILABLE will be called, write your code there based on this status.
Once satellite is available, your phone's signal strength will increase. use system properties to check when your signal will increase at that time execute that logic.
Back To Top