I have few files in raw folder of application, i need to have both Uri and filepath for those/all files present in the raw folder
so far, i am able to print all the names of files in raw folder(from here), but not able to get Uri and the file path for them
public void listRaw()
{
Field[] fields=R.raw.class.getFields();
for(int count=0; count < fields.length; count++)
{
Log.i("Raw Asset: ", fields[count].getName());
}
}
- I DO NOT need input stream for those files
- I need file path and uri for those files
- Do i need to put all files in assets to get Uri and filepath