Samsung Galaxy wont return (Bitmap) data.getExtras().get(“data”);

前端 未结 1 584
暗喜
暗喜 2021-01-27 12:02
    String strAvatarPrompt = \"Take your picture to store as your avatar!\";
    Intent pictureIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            


        
相关标签:
1条回答
  • 2021-01-27 12:10

    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.

    0 讨论(0)
提交回复
热议问题