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?

[189 byte] By [Falwicka] at [2007-11-27 10:26:08]
# 1

try {

// code that monitors state

} catch(LocationNotFoundException lex) {

// handle "lost"

} catch(OutOfServiceException oosex) {

// handle "out of service"

}

bsampieria at 2007-7-28 17:37:44 > top of Java-index,Java Essentials,Java Programming...