Get Path from another app (WhatsApp)

后端 未结 7 1187
萌比男神i
萌比男神i 2020-12-13 22:49

I\'m not getting Path from image or video from uri that I receive from whatsApp.

Uri comes like this: content://com.whatsapp.provider.media/item/16695

Media

7条回答
  •  不思量自难忘°
    2020-12-13 23:29

    Using the code example below will return to you the bitmap :

    BitmapFactory.decodeStream(getContentResolver().openInputStream(Uri.parse("content://com.whatsapp.provider.media/item/128752")))
    

    After that you all know what you have to do.

提交回复
热议问题