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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -