• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GPS not working(unable to get latlon info

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic