import java.security.NoSuchAlgorithmException; import java.security.MessageDigest; import java.lang.reflect.*; import java.net.*; import java.io.*; import javax.swing.*; import java.util.regex.*; import java.util.*; public class main { static android.app.Activity androidContext; // set from outside public static void main(String[] args) throws Exception { File dir = new File("/storage/sdcard0/JavaXData"); dir.mkdirs(); System.out.println("Success making " + dir.getPath() + ": " + dir.isDirectory()); } }