java - Button Click - Copy file from APK Package to Android Path. But How? -
I am trying to create a simple application that will copy a file from the "property" folder of the APK package (e.g. MNT / Sdcard / android / data / com.testdev.testapp when clicked button1.
But I do not know how to do it. Is it possible or is there any remedy?
Can anyone help me?
Thanks in advance
Step # 1: Receive the call Asset Manager
For getAssets ()
any reference
(for example, your activity
).
step # 2 : Asset Manager
to get InputStream
at the costume.
Step # 3: Use standard Java file I / O to copy from InputStream
to an FileOutputStream
to point to a point on external accumulation.
Comments
Post a Comment