I would like to be able to check if the GPS phone is working or not (in the application code). Right now, I'm just trying to directly access the GPS location without
if ( GPS_is_working ) {
}
I have a problem right now, because when I get access to GPS, when it does not work, a forced close dialog appears and my activity is turned off.
What is the code for this?
source
share