Raw folder url path?

Uri video = Uri.parse("android.resource://com.cpt.sample/raw/filename");

Using this you can access the file in raw folder, if you want to access the file in asset folder use this URL…

file:///android_asset/filename

Make sure you don’t add the extension to the filename. E.g. “/movie” not “/movie.mp4”.

Leave a Comment