• 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

unable to get gps coordinates in my app on mobile

 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
iam trying to get the gps coordinates on my mobile.
in the avd iam able to get the coordinates with the help of emulator control but fail to do that in real device...
i have refered this link
http://www.firstdroid.com/2010/04/29/android-development-using-gps-to-get-current-location-2/

i dont why iam not able to do in real device
any suggestion would be helpful
thankyou
 
Ranch Hand
Posts: 38
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kindly try the following steps and give it another try,
1. Generate a new keystore when exporting your app as an apk. (You can do this while exporting your app)
2. Also generate a new Android Map API key with MD5 checksum.

Let me know of your results.
 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what the Android Map API key Mohan mentioned is supposed to be, but the things to check are: a) does the manifest have the proper permission (fine location), b) is GPS turned on on the device, c) are there any exceptions in the logcat output, d) can the device fix GPS location in other apps (like Google Maps or MapDroid)?
 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi..
i would like to know if i could get the gps coordinates of an image captured???
and if yes how can i achieve that??
please suggest
 
Tim Moores
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Those are generally written as EXIF metadata in JPEGs; see http://rsbweb.nih.gov/ij/plugins/exif-reader.html for some code. Other file formats probably have similar facilities.

But if the picture is taken by your app, then you can just query the GPS directly. Probably a lot simpler than extracting that data from an image.
 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i want to start the camera with gps enabled would could then capture the image with gps coorinates
 
Tim Moores
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then my previous comment fully applies.
reply
    Bookmark Topic Watch Topic
  • New Topic