• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to get gps coordinates in my app on mobile

 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • 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
 
Mohan Prasath
Ranch Hand
Posts: 38
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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.
 
Tim Moores
Bartender
Posts: 3128
50
  • Mark post as helpful
  • send pies
  • 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
  • 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
Bartender
Posts: 3128
50
  • Mark post as helpful
  • send pies
  • 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
  • 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
Bartender
Posts: 3128
50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then my previous comment fully applies.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic