[android-developers] Re: photo picker Uri issue

2009-04-01 Thread Bobbie
I tried this code, and every time it force closes. The Uri object gives me the Uri, but I can't see why it's failing... Please help!!! Uri photoUri = intent.getData(); Cursor cursor = getContentResolver().query(photoUri, new String[] {MediaStore.Images.ImageColumns.DATA}, null, null, null);

[android-developers] Re: photo picker Uri issue

2009-04-01 Thread Streets Of Boston
I can't tell. Debug your code and see which statement throws an exception and see what exception is thrown and note the values of the variables (are some set to null when they shouldn't, for example). On Apr 1, 9:35 am, Bobbie bobbie.st...@gmail.com wrote: I tried this code, and every time it

[android-developers] Re: photo picker Uri issue

2009-04-01 Thread Bobbie
The exception is: 04-01 14:09:30.274: ERROR/AndroidRuntime(719): java.lang.RuntimeException: Failure delivering result ResultInfo {who=null, request=1, result=-1, data=Intent { data=content://media/ external/images/media/7 }} to activity {com.app.name/ com.app.name.activity}:

[android-developers] Re: photo picker Uri issue

2009-04-01 Thread Streets Of Boston
You have to call moveToNext or moveToPosition first before you can use the cursor. On Apr 1, 2:13 pm, Bobbie bobbie.st...@gmail.com wrote: The exception is: 04-01 14:09:30.274: ERROR/AndroidRuntime(719): java.lang.RuntimeException: Failure delivering result ResultInfo {who=null, request=1,

[android-developers] Re: photo picker Uri issue

2009-03-26 Thread beachy
cheers, did not know that about Drawables will use Bitmaps then. Thanks, Greg. On Mar 25, 3:23 pm, Streets Of Boston flyingdutc...@gmail.com wrote: This Uri is the logical (not physical) path used by the image content provider. If you want to get the physical path to the actual file on the

[android-developers] Re: photo picker Uri issue

2009-03-25 Thread Streets Of Boston
This Uri is the logical (not physical) path used by the image content provider. If you want to get the physical path to the actual file on the SD- card, query this Uri: Cursor cursor = query(photoUri, new String[] {MediaStore.Images.ImageColumns.DATA}, null, null, null); String