Java tutorial
//package com.java2s; import java.io.File; import android.app.Activity; import android.content.Context; public class Main { public static File getDataUpdateDir(Activity act) { return act.getDir("update", Context.MODE_PRIVATE | Context.MODE_WORLD_READABLE | Context.MODE_WORLD_WRITEABLE); } }