Search code examples
androiddirectorysd-cardddmsandroid-file

Create folder in sd card


Alright so I created 2 folders in the SD card using the following code:

String folderPath = Environment.getExternalStorageDirectory() + "/AllAroundMe/Images/";
      File file = new File(folderPath);
      if(!file.exists())
      {
            if(file.mkdirs());
                      Log.d("MyTag","Successfully created folders");
      }

I tested this program and it really works, the logcat prints the success message above.

But if I navigate to my sd card I don't see "AllAroundMe" folder.

How can I access that folder from my computer?


Solution

  • Try this Open DDMS perspective -> File Explorer - > mnt -> sdcard