retrieve absolute path when select image from gallery kitkat android

前端 未结 4 1339
说谎
说谎 2020-12-01 07:59

As I am supporting my app to Kitkat version, now in this the way of retrieve file from gallery was different.

I have preferred this Android Gallery on KitKat returns

4条回答
  •  无人及你
    2020-12-01 08:46

    Bitmap bitmap = MediaStore.Images.Media
    .getBitmap(getActivity().getContentResolver(), uri);
    

    I hope that this will help you.

提交回复
热议问题