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
Post a Comment