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 : Open () at 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

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -