Java tutorial
//package com.java2s; import android.os.Environment; import java.io.File; public class Main { public static File getUploadFolder() { File file = Environment.getExternalStorageDirectory(); File path = new File(file, File.separator + "farm" + ""); if (!path.exists()) path.mkdir(); return path; } }