Yes it gives back folders as well, I solved it this way:

private void copyDir(AssetManager assetManager, String path) {
if (hasChildren(assetManager, filepath)) {
Log.d(QtTAG, "DIR FOUND at: " + filepath);
copyDir(assetManager, filepath);
} else {
Log.d(QtTAG, "FILE FOUND at: " + filepath);


private boolean hasChildren(AssetManager assetManager, String path)
{
try {
if (assetManager.list(path).length > 0){
return true;
}
} catch (IOException e) {
e.printStackTrace();
}
return false;
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to