aspose file tools*
The moose likes Java Micro Edition and the fly likes GPS not working(unable to get latlon info Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "GPS not working(unable to get latlon info" Watch "GPS not working(unable to get latlon info" New topic
Author

GPS not working(unable to get latlon info

Dushyant Chhetri
Ranch Hand

Joined: Oct 28, 2009
Posts: 75
Hi All,

I tested a simple application that gets the Lat Lon Info and displays it onto the screen.
It is working fine on an emulator , However when I tried it on my samsung GT-M5650, it is not able to retrieve the info.

Please suggest:

Code snippet below:



Regards,
Dush..
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

Location Services is a special JSR subsystem. It is not part of ordinary JME. Not all devices implement it.

That means that the first thing you have to do is make sure that the device in question even implements location services.

GPS is often turned off by default, since it's a significant power drain. In fact, for some phones, the carrier permanently disabled the hardware. Since Location Services allows selecting a "best-fit" location service provider, that usually allows apps to fall back to less-precise techniques, like using the cellphone towers to do trilateration. However, it's possible that some phones wouldn't have that option. The actual GPS hardware (where available) usually has to be powered on by a separate control panel function. I don't think there's a Java API call for it.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GPS not working(unable to get latlon info
 
Similar Threads
Problem with accessing the build-in GPS on nokia (N95)
GPS vs. MAP applications?
java.lang.Integer error
Location Exception while using GPS(Location API)
Problem in Obtaining Location using GPS