Is GPS Enabled?

Is there a way to determine if the device has gps enabled without querying the user to turn on their GPS? Right now I am using:

 local locationHandler = function( event )  
 -- Check for error (user may have turned off Location Services)  
 if event.errorCode then  
 gpsBtn:setActive (false, 0.3)  
 else  
 gpsBtn:setActive (true, 1.0)  
 end  
 end  
 Runtime:addEventListener( "location", locationHandler )  

The problem with this is that when the user gets to the page, the page presents a popup saying it requires GPS and asks the user to enable it. I simply want to ping for the service and act accordingly without any interaction with the user.

Thoughts? [import]uid: 69863 topic_id: 20409 reply_id: 320409[/import]

Currently there is no indication that GPS is enabled or even supported on the device. Because of the location-based GPS (using wifi) you make get GPS events but still not have GPS enabled.

You can look the even.time parameter as an indication of an active GPS signal. The time parameter will advance every second when GPS is enabled and the correct number of satellites have been acquired. The only problem is this could take up to five minutes when in a new location or even longer if the device is indoors without a view of the satellites.

We are looking at some new APIs to provide more information about the GPS signals. [import]uid: 7559 topic_id: 20409 reply_id: 80070[/import]