My question consists of three parts:
1. how can i show the default gallery application when using
android.content.Intent.ACTION_GET_CONTENT, what i'm using now is to show a
custom intent chooser with static package names
(packageName.equals("com.google.android.gallery3d") ||
packageName.equals("com.cooliris.media")
|| packageName.equals("com.htc.album") ||
packageName.equals("com.sonyericsson.gallery"), surely there must be
another way because i cannot possibly test on all phones
2.i use this code : Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.addCategory(android.content.Intent.CATEGORY_DEFAULT);
intent.setDataAndType(imageUri, "image/*"); to show a photo, but when i
press back to return to my application it crashes, what is the problem?\
3. to capture a photo using the camera, i use the following code :
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
but in onActivityResult in my activity when i click save, the data
parameter is null, there is no uri of the image file, what am i doing wrong
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en