java - How to edit a resource file from within an android app? (Android Studio) -


i'm creating android app utilizes log. i've placed file entitled "log.txt" in "raw" resource folder. have figured out how open inputstream using openrawresource, not sure how open can use printwriter it.

i have tried accessing file pre-created on target device, have not succeeded.

if explain me either how open resource file printwriter, i'd appreciate it.

however not sure how open can use printwriter it.

you can't. resources read-only @ runtime. welcome use inputstream write copy of resource's contents file on filesystem (e.g., on internal storage), though.


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -