[android-developers] Re: Get File Path With URI

2009-04-29 Thread Georg
You are right, I know these things, but thats not the problem. The problem is that i always get 0.0 for the Latitude and Longitude column. That's the problem. Any ideas? Regards Georg On Apr 27, 7:05 pm, Sergey Ten wrote: > After query returns the cursor, it has to be moved forward. It can be

[android-developers] Re: Get File Path With URI

2009-04-27 Thread Sergey Ten
After query returns the cursor, it has to be moved forward. It can be done as follows: ContentResolver cr = getContentResolver(); Cursor cursor = cr.query(photoUri, new String[] { MediaStore.Images. > > ImageColumns.LATITUDE, >MediaStore.Images.ImageColumns.LONGITUDE >

[android-developers] Re: Get File Path With URI

2009-04-27 Thread GeorgKitz
Does your code work? I have exactly the same source and i'm setting the cursor to the first element. The only problem is that my latitutde-value is always 0. But the image has EXIF information about the location in it. Can somebody help me? Regards Georg On Apr 1, 8:11 pm, Bobbie wrote: > I a

[android-developers] Re: Get File Path With URI

2009-04-01 Thread Bobbie
Thank you SO much! I hate those 1-liners that kill your app, haha. Thanks again!!! On Apr 1, 2:14 pm, Mark Murphy wrote: > Mark Murphy wrote: > > Cursors are always pointing before the first result. > > Actually, to clarify: Cursors are always pointing before the first > result when you initia

[android-developers] Re: Get File Path With URI

2009-04-01 Thread Mark Murphy
Mark Murphy wrote: > Cursors are always pointing before the first result. Actually, to clarify: Cursors are always pointing before the first result when you initially get the Cursor from a query (whether of a content provider or database). -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: Get File Path With URI

2009-04-01 Thread Mark Murphy
Bobbie wrote: > I am launching an image picker (from the gallery) and my code crashes > every single time. I tried to get some help in another post, but > people quit responding to the post. Please help. When I do a debug, > it tells me this (there are TONS of errors, but these looked the most