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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -