Java tutorial
//package com.java2s; //License from project: Open Source License import android.os.Environment; import java.io.File; public class Main { public static File getSDCardSoPath() { String fileStr = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator; File f = new File(fileStr); if (!f.exists()) { f.mkdirs(); } return f; } }