private void assetsDataToSD(String fileName) throws IOException
{
InputStream myInput;
OutputStream myOutput = new FileOutputStream(fileName);
myInput = this.getAssets().open("myfile.zip");
byte[] buffer = new byte[1024];
int length = myInput.read(buffer);
while(length > 0)
{
myOutput.write(buffer, 0, length);
length = myInput.read(buffer);
}
myOutput.flush();
myInput.close();
myOutput.close();
}
😃😃😊😊