I just want to create a File object like this
File myImageFile = new File (\"image1\") ;
but it is giving me exception of FileNotFou
You can open it as InputStream, I don't know if possible as a file:
int rid = resources.getIdentifier(packageName + ":raw/" + fileName, null, null); //get the file as a stream InputStrea is = resources.openRawResource(rid);