Android SDCard Check getSdcardFilesDir(Context c)

Here you can find the source of getSdcardFilesDir(Context c)


get Sdcard Files Dir


public static String getSdcardFilesDir(Context c) 

Method Source Code

//package com.java2s;
import android.content.*;

public class Main {
    public static String getSdcardFilesDir(Context c) {
        return c.getExternalFilesDir(null).getAbsolutePath()
                + File.separator;
    }/*from  w w  w.j  a v a 2s . c o  m*/


  1. getExternalStorageTotalSize()
  2. generateLogOnSD(String sBody, String fileName, String folderName)
  3. getDataFilesDir(Context c)
  4. getSDPath()
  5. getSdCacheDir(Context context)
  6. hasSdcard()
  7. isSDCardPresent()
  8. getFreeMemory(String path)
  9. isSdcardAvailable()