Here you can find the source of getDataFile(Context context, String fileName)
public static File getDataFile(Context context, String fileName)
//package com.java2s; import java.io.File; import android.content.Context; public class Main { public static File getDataFile(Context context, String fileName) { File file = new File(getDatafilesStorageDirectory(context), fileName);/*w ww . j av a 2s. c o m*/ return file; } /** * @param context */ public static File getDatafilesStorageDirectory(Context context) { return context.getExternalFilesDir(null); } }