akshay shetty
akshay shetty

Reputation: 304

Get content uri from file path in android for video

know the absolute path of a video (say for eg, /sdcard/abcd.mp4). Is there any way to the content URI for this file?

Actually, in my code, I select the image from gallery and trim the video file and save it in the folder but I don't know how to get the content URI

Upvotes: 0

Views: 534

Answers (1)

Babu Rao
Babu Rao

Reputation: 41

try this code

Uri.fromFile(new File("/sdcard/sample.jpg"));

Upvotes: 4

Related Questions