LOL! No, I am glad that I found the answer but I just wish that I had persisted in searching for it a little longer before posting my question. But the good news is that maybe someone else with the same problem will read my post and find the answer faster than I did.
On May 7, 8:08 am, Jon Jacob <[email protected]> wrote: > You hate finding the answer???? ;) > > This is good to know, anyway. Thanks for posting the answer. > > On May 6, 4:56 pm, DonFrench <[email protected]> wrote: > > > > > I hate it when I find the answer two minutes after posting the > > question! All I needed was this: > > > <uses-permission > > android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> > > > in the manifest. > > > On May 6, 4:50 pm, DonFrench <[email protected]> wrote: > > > > I am not succeeding in creating a new folder on the SD card using the > > > following code: > > > > try{ > > > String dirName = "/sdcard/testdir"; > > > File newFile = new File(dirName); > > > newFile.mkdirs(); > > > if(newFile.exists()){ > > > toastLong("directory exists"); > > > if(newFile.isDirectory()){ > > > toastLong("isDirectory = true"); > > > } else toastLong("isDirectory = false"); > > > } else { > > > toastLong("directory doesn't exist"); > > > }} catch(Exception e){ > > > > toastLong("Exception creating folder " + e); > > > > } > > > > I don't get an exception but the message I do get is "directory > > > doesn't exist"and in fact the folder is not created. Why doesn't this > > > work and what is the right way to do this? > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Beginners" group. > > > > NEW! Try asking and tagging your question on Stack Overflow > > > athttp://stackoverflow.com/questions/tagged/android > > > > To unsubscribe from this group, send email to > > > [email protected] > > > For more options, visit this group > > > athttp://groups.google.com/group/android-beginners?hl=en > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Beginners" group. > > > NEW! Try asking and tagging your question on Stack Overflow > > athttp://stackoverflow.com/questions/tagged/android > > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group > > athttp://groups.google.com/group/android-beginners?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow > athttp://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

