Rajan Maurya
Rajan Maurya

Reputation: 634

How to copy a .txt file from sdcard to my app res/raw folder

how to copy my text file in my app at (res/raw) folder from sdcard. thing about is not at stackoverflaw about copy a file from sdcard to my app. i am not getting anything else from Google so please help me a perfect answer.

Upvotes: 1

Views: 385

Answers (1)

Bhavin Nattar
Bhavin Nattar

Reputation: 3215

May this help you:

Android .apk file is Read Only.
So the directory structure which are in that apk file follows the same..
No one can write files or make changes at runtime as Assets folder are not Writable...

That's why You can't make any changes in /asset folder at runtime...

We can only read file from it (means we can copy files which are available in asset to any internal storage or /sdcard but reverse of it is not possible).

Upvotes: 1

Related Questions