JRS 179 Location APU
i have to catch an exception when mi cellphone, with integrated GPS, falls into OUT OF SERVICE state, or when the LocationPRovider doesnt receive location information. How i do that?
i have to catch an exception when mi cellphone, with integrated GPS, falls into OUT OF SERVICE state, or when the LocationPRovider doesnt receive location information. How i do that?
try {
// code that monitors state
} catch(LocationNotFoundException lex) {
// handle "lost"
} catch(OutOfServiceException oosex) {
// handle "out of service"
}