Android Context Get getDataFile(Context context, String fileName)

Here you can find the source of getDataFile(Context context, String fileName)

Description

get Data File

Declaration

public static File getDataFile(Context context, String fileName) 

Method Source Code

//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);
    }
}

Related

  1. getCornerRadius(Context context)
  2. getCurProcess(Context context)
  3. getCurrentHome(Context c)
  4. getCurrentLocationByName( Context context)
  5. getCurrentSsid(Context context)
  6. getDefaultDisplayMetrics( @Nonnull Context context)
  7. getDefaultDisplayMetrics( @Nonnull Context context)
  8. getDensity(Context context)
  9. getDensity(Context context)