String strAvatarPrompt = \"Take your picture to store as your avatar!\";
Intent pictureIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
Some devices don't return the DATA extra; others only return a very small thumbnail in the extra. You're best off reading the file from the SD card location in EXTRA_OUTPUT
(which you're already requesting in your original intent) in the callback if it's available, falling back to the data extra only if you can't read the EXTRA_OUTPUT
. See this related SO question.