Hello Android Community,
I have some problems to retrieve geolocation info from pictures I took
with the camera.

Actually, it used to work fine on my HTC Magic, but since I got a new
HTC Desire S, all I get is 0.0 for my longitude/latitude, as if the
pictures were not geolocated... However in the phone gallery, I can
clearly see in the picture details, the correct latitude/longitude.

Here is the sample of code I use to parse pictures. I'm using SDK
version 4 (google api 1.6).

myCursor = this.managedQuery(Media.EXTERNAL_CONTENT_URI, null, null,
null, null);
                while ( myCursor.moveToNext()){
                        Float latitude =
myCursor.getFloat(myCursor.getColumnIndex("latitude"));
                        Float longitude =
myCursor.getFloat(myCursor.getColumnIndex("longitude"));
                        String title =
myCursor.getString(myCursor.getColumnIndex(MediaStore.Images.ImageColumns.TITLE));
}

And so, when I print longitude and latitude, they are set to "null",
whereas other informations seem to be good, as title, date taken, etc.

Do you have an idea?

In advance, thank you for your help.
Axel

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to