Skip to content

Instantly share code, notes, and snippets.

View goldfish07's full-sized avatar
🎯
Focusing

Ayush Bisht goldfish07

🎯
Focusing
  • India, Uttrakhand, Kotdwara
View GitHub Profile
@tylerchesley
tylerchesley / gist:6198074
Created August 9, 2013 23:10
Function to recursively copy files from an Android asset directory
public void copyFileOrDir(String path) {
AssetManager assetManager = this.getAssets();
String assets[] = null;
try {
assets = assetManager.list(path);
if (assets.length == 0) {
copyFile(path);
} else {
String fullPath = "/data/data/" + this.getPackageName() + "/" + path;
File dir = new File(fullPath);