You need to have the permission. WRITE_EXTERNAL_STORAGE And the code is similar to Java. You can read up or search on how to do that in Java, and the same code should work as well on Android. String tempFilePath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "your_folder_name"; File file = new File(tempFilePath); file.mkdir();
On Oct 29, 10:58 pm, TreKing <treking...@gmail.com> wrote: > On Fri, Oct 29, 2010 at 8:53 AM, brindha sweety > <brindhasweety...@gmail.com>wrote: > > > how to create a folder in android emulator programmatically? > > OK. What does "create a folder in android emulator" mean? > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en