Skip to content Skip to sidebar Skip to footer

Android Trying To Open File In Resource Raw Folder, Keeps Saying File Does Not Exist

I have code to open a file stored in the raw folder inside the resource folder. The exception for (FileNotFoundException keeps going off, cannot figure out why. code package bestt

Solution 1:

change your URI code as:

String strUri = "android.resource://"+ 
         RingtunesstarwarsActivity.this.getPackageName()+  "/" + "raw/blasters";
Uri mUri = Uri.parse(strUri);

Post a Comment for "Android Trying To Open File In Resource Raw Folder, Keeps Saying File Does Not Exist"