might want to use the file constructor meant for parent + child --
new File (dir, filename)
filepath + filename might not work for all platforms. the reserved
constructor is safest.
hth
This works for me:
private void deleteFiles() {
File dir = new File(<path to the files>);
String[] children = dir.list();
if (children != null) {
for (int i=0; i<children.length; i++) {
String filename = children[i];
File f = new File(filePath + filename);
if (f.exists()) {
f.delete();
}
}
}
}
-John Coryat
"Radar Now!"
"What Zip Code?"
--
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
--
jason.vp.engineering.particle
--
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