Java tutorial
//package com.java2s; //License from project: Apache License import java.io.File; import android.content.Context; import android.os.Environment; public class Main { public static File getDataDir(Context context) { File file = new File(Environment.getExternalStorageDirectory(), context.getPackageName() + "/data"); if (!file.exists()) { file.mkdirs(); } return file; } }