How to copy my zip file (I have this file in my res files) to internal storage (path: data/data/[myPackageName]/files) ?
I tried to do so, but it only worked once and not anymore.
FileInputStream in = null;
InputStreamReader reader = null;
try {
char[] inputBuffer = new char[256];
in = openFileInput("file.zip");
reader = new InputStreamReader(in);
reader.read(inputBuffer);
String myFile = new String(inputBuffer);
} catch (Exception e) {;}
finally {
try {
if (reader != null)reader.close();
} catch (IOException e) {; }
try {
if (in != null)in.close();
} catch (IOException e) {;}
}