android - Copy from file from assets folder to my package location for both (sdcard, or internal memory) -


i want copy pdf file assets folder of project folder project installed, whether project installed on sdcard or internal memory.

i saw solutions says copy assets folder assetmanager /data/data/packagename

but

/data/data/

means on internal , sdcard?

you should never hardcode pathes. instead application's data folder this:

activity.getfilesdir().getpath(); 

Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -