Java tutorial
//package com.java2s; import java.io.File; import android.content.Context; public class Main { public static String getPicStorePath(Context ctx) { File file = ctx.getExternalFilesDir(null); if (!file.exists()) { file.mkdir(); } File imageStoreFile = new File(file.getAbsolutePath() + "/mq"); if (!imageStoreFile.exists()) { imageStoreFile.mkdir(); } return imageStoreFile.getAbsolutePath(); } }