Hi all! I have this code:
String databaseDirectory = "/CountDown";
Log.v("CD", "trying to create directory");
File dir = new File(databaseDirectory);
if(!dir.exists()){
try {
if(dir.mkdir()){
Log.v("CD","directory created");
}else{
Log.v("CD", "creation failed");
}
} catch (Exception e) {
Log.v("CD", "exception thrown");
}
}else{
Log.v("CD", "already exists");
}
and I get this output:
trying to create directory
creation failed
so the directory doesn't exist, and I'm not throwing an exception, but
its not letting me create a directory.
--
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