List of usage examples for android.os Environment isExternalStorageRemovable
public static boolean isExternalStorageRemovable()
From source file:ar.com.lapotoca.resiliencia.gallery.util.ImageCache.java
/** * Check if external storage is built-in or removable. * * @return True if external storage is removable (like an SD card), false * otherwise.//from w w w . j a v a2 s. c om */ @TargetApi(VERSION_CODES.GINGERBREAD) public static boolean isExternalStorageRemovable() { return Environment.isExternalStorageRemovable(); }
From source file:com.chatitzemoumin.londoncoffeeapp.util.ImageCache.java
/** * Check if external storage is built-in or removable. * * @return True if external storage is removable (like an SD card), false * otherwise./* www . j a v a 2 s. com*/ */ @TargetApi(VERSION_CODES.GINGERBREAD) public static boolean isExternalStorageRemovable() { if (PlatformUtils.hasGingerbread()) { return Environment.isExternalStorageRemovable(); } return true; }
From source file:com.jasper.image.imagemanager.imagehelper.imageEngine.ImageCache.java
/** * Check if external storage is built-in or removable. * * @return True if external storage is removable (like an SD card), false * otherwise./*from www.j a v a 2s . com*/ */ @TargetApi(VERSION_CODES.GINGERBREAD) public static boolean isExternalStorageRemovable() { if (VersionUtils.hasGingerbread()) { return Environment.isExternalStorageRemovable(); } return true; }
From source file:com.common.library.bitmap.ImageCache.java
/** * Check if external storage is built-in or removable. * * @return True if external storage is removable (like an SD card), false * otherwise.//from www .ja v a2 s . c om */ @TargetApi(VERSION_CODES.GINGERBREAD) public static boolean isExternalStorageRemovable() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) { return Environment.isExternalStorageRemovable(); } return true; }
From source file:com.slack.slackteam.cache.ImageCache.java
/** * Check if external storage is built-in or removable. * * @return True if external storage is removable (like an SD card), false * otherwise.//from www.j av a 2s.c o m */ @TargetApi(VERSION_CODES.GINGERBREAD) public static boolean isExternalStorageRemovable() { if (SLUtils.hasGingerbread()) { return Environment.isExternalStorageRemovable(); } return true; }
From source file:com.ccz.viewimages.displayingbitmaps.util.ImageCache.java
/** * Check if external storage is built-in or removable. * * @return True if external storage is removable (like an SD card), false * otherwise./* w w w . jav a2s . c om*/ */ @TargetApi(VERSION_CODES.GINGERBREAD) public static boolean isExternalStorageRemovable() { if (FlavorUtils.hasGingerbread()) { return Environment.isExternalStorageRemovable(); } return true; }
From source file:air.com.snagfilms.utils.ImageCache.java
/** * Check if external storage is built-in or removable. * /* w ww . j a va 2 s . co m*/ * @return True if external storage is removable (like an SD card), false * otherwise. */ @TargetApi(VERSION_CODES.GINGERBREAD) public static boolean isExternalStorageRemovable() { if (Utils.hasGingerbread()) { return Environment.isExternalStorageRemovable(); } return true; }
From source file:com.sughimura.samplebitmaps.util.ImageCache.java
/** * Check if external storage is built-in or removable. * * @return True if external storage is removable (like an SD card), false * otherwise./*from w w w . j av a 2s . c o m*/ */ @TargetApi(VERSION_CODES.GINGERBREAD) public static boolean isExternalStorageRemovable() { if (com.sughimura.samplebitmaps.util.Utils.hasGingerbread()) { return Environment.isExternalStorageRemovable(); } return true; }
From source file:com.yooiistudios.newskit.core.cache.volley.ImageCache.java
/** * Check if external storage is built-in or removable. * * @return True if external storage is removable (like an SD card), false * otherwise./*from w w w . j a v a 2 s . c o m*/ */ @TargetApi(VERSION_CODES.GINGERBREAD) public static boolean isExternalStorageRemovable() { if (Device.hasGingerbread()) { return Environment.isExternalStorageRemovable(); } return true; }
From source file:com.android.exchange.adapter.ProvisionParser.java
/** * In order to determine whether the device has removable storage, we need to use the * StorageVolume class, which is hidden (for now) by the framework. Without this, we'd have * to reject all policies that require sd card encryption. * * TODO: Rewrite this when an appropriate API is available from the framework *//*from w w w.j ava2 s .c o m*/ private boolean hasRemovableStorage() { final File[] cacheDirs = ContextCompat.getExternalCacheDirs(mContext); return Environment.isExternalStorageRemovable() || (cacheDirs != null && cacheDirs.length > 1); }