Android SDCard Check hasMountSDCard()

Here you can find the source of hasMountSDCard()

Description

Detect whether SD card has mounted or not.

Declaration

public static boolean hasMountSDCard() 

Method Source Code

//package com.java2s;

public class Main {
    /**//from ww  w.jav  a2 s  . co  m
     * Detect whether SD card has mounted or not.
     * 
     * @author Sean Zheng
     * @CreateDate 2013-4-23
     */
    public static boolean hasMountSDCard() {
        return android.os.Environment.getExternalStorageState().equals(
                android.os.Environment.MEDIA_MOUNTED);
    }
}

Related

  1. hasSDCard()
  2. hasSDCard()
  3. sdCardIsAvailable()
  4. isExternalStorageReadable()
  5. isExternalStorageWritable()
  6. getExternalStorageFreeSize()
  7. getExternalStorageTotalSize()
  8. generateLogOnSD(String sBody, String fileName, String folderName)
  9. getDataFilesDir(Context c)