has External Storage - Android Phone

Android examples for Phone:Storage

Description

has External Storage

Demo Code


//package com.java2s;

import android.os.Environment;

public class Main {

    public static boolean hasExternalStorage() {
        Boolean externalStorage = Environment.getExternalStorageState()
                .equals(android.os.Environment.MEDIA_MOUNTED);
        return externalStorage;
    }/*  w  ww  . ja v a2s  .c o m*/
}

Related Tutorials