Reputation: 11
I added some files in res folders in my application and i need to use that files in my applicatin. I want to access that files and i tried that .
FileOutputStream out = new FileOutputStream(new File("/myapp/app/src/main/java/res/Doc1/index.html"));
But it does not work, how can i access that folder ?
Upvotes: 0
Views: 2109
Reputation: 1007584
Resources are files on your development machine. They are not files on the device. They are merely entries in your APK file. You cannot access them using File
.
Upvotes: 1