@@ -0,0 +1,1616 @@
+package net.compactsys.androlib.io;%0A%0Aimport android.os.Environment;%0A%0Aimport java.io.File;%0A%0Apublic class SDCard %7B%0A%0A    public static boolean isAvailable() %7B%0A        String state = Environment.getExternalStorageState();%0A%0A        if (Environment.MEDIA_MOUNTED.equals(state)) %7B%0A            // We can read and write the media%0A            return true;%0A        %7D else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) %7B%0A            // We can only read the media%0A            return true;%0A        %7D else %7B%0A            // Something else is wrong. It may be one of many other states, but%0A            // all we need%0A            // to know is we can neither read nor write%0A            return false;%0A        %7D%0A    %7D%0A%0A    public static boolean isWriteable() %7B%0A%0A        // Check SD Storage%0A        String state = Environment.getExternalStorageState();%0A%0A        if (Environment.MEDIA_MOUNTED.equals(state)) %7B%0A            // We can read and write the media%0A            return true;%0A        %7D else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) %7B%0A            // We can only read the media%0A            return false;%0A        %7D else %7B%0A            // Something else is wrong. It may be one of many other states, but%0A            // all we need%0A            // to know is we can neither read nor write%0A            return false;%0A        %7D%0A    %7D%0A%0A    public static String getSDCardPath() %7B%0A        File f = Environment.getExternalStorageDirectory();%0A        return f.getAbsolutePath();%0A    %7D%0A%0A    public static File getSDCardPath(String folder) %7B%0A        return new File(Environment.getExternalStorageDirectory(), folder);%0A    %7D%0A%7D%0A

Add SDCard helper