How to convert absolute path to URI in android java

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Oct 7, 2017 1:12:03 PM via Website

Hi folks,

I wanted to convert a path like : /sdcard/DCIM/Camera/VID

to: content://media/external/video/media/34347

I have tried: Uri.Parse(content://media/external/video/media/34347
) but still it have the same path of /sdcard/DCIM/Camera/VID

Can someone tell me how to convert this filepath to URI?

Thanks