Skip to content

Instantly share code, notes, and snippets.

Avatar

Reker imReker

View GitHub Profile
@imReker
imReker / android_assets_copy.java
Last active Sep 12, 2017
[Android] Quick Copy/Extract files in assets to storage with java.nio
View android_assets_copy.java
/*
Change the file extension of the files in assets that your want to copy to 'jpg'.
If you don't want change the extension, you can add
aaptOptions {
noCompress 'pdf' //Change to the extension of your assets files
}
to build.gradle.
*/
AssetFileDescriptor fd = null;
FileChannel outChannel = null;