I am trying to get the Uri from a raw file I have included in the project in the raw folder. But I am getting a FileNotFoundException,
Uri
raw
FileNotFoundException
You can open your InputStream to the raw Resource like this:
InputStream rawInputStream = getResources().openRawResource(R.raw.usa_for_africa_we_are_the_world) DataInputStream dataInputStream = new DataInputStream(rawInputStream);