Android SDCard Check getDatafilesStorageDirectory(Context context)

Here you can find the source of getDatafilesStorageDirectory(Context context)

Description

get Datafiles Storage Directory

Parameter

Parameter Description
context a parameter

Declaration

public static File getDatafilesStorageDirectory(Context context) 

Method Source Code

//package com.java2s;

import java.io.File;

import android.content.Context;

public class Main {
    /**//w w w . jav a2  s . com
     * @param context
     */
    public static File getDatafilesStorageDirectory(Context context) {
        return context.getExternalFilesDir(null);
    }
}

Related

  1. isExternalStorageWritable()
  2. isExternalStoragePresent()
  3. getAlbumStorageDirectory(String albumName)
  4. getExtStoragePubDir(String dirName, String dirType)
  5. getAvailableStorageSize(File dir)