I have been trying to get the URI path for an asset file.
uri = Uri.fromFile(new File(\"//assets/mydemo.txt\"));
When I check if the file
try this :
Uri uri = Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.cat);
I had did it and it worked