Ali.A
Ali.A

Reputation: 11

Android Studio File Path in App Folders

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

Answers (1)

CommonsWare
CommonsWare

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

Related Questions