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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -