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);
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
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}:
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,
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
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
6 matches
Mail list logo