Java Code Examples for android.os.Environment.MEDIA_UNMOUNTED
The following are Jave code examples for showing how to use
MEDIA_UNMOUNTED of the
android.os.Environment
class.
You can vote up the examples you like. Your votes will be used in our system to get
more good examples.
+ Save this method
Example 1
Project: AndroidSDK2.0 File: OfflineFile.java View Source Code | 6 votes |
/** * Gets external storage path. * * @return the external storage path */ public static String getExternalStoragePath() { if ( Environment.getExternalStorageState().equals( Environment.MEDIA_MOUNTED ) ) { return Environment.getExternalStorageDirectory().getAbsolutePath(); } else { return Environment.MEDIA_UNMOUNTED; } }
Example 2
Project: AndroidSDK2.0 File: OfflineFileParser.java View Source Code | 5 votes |
/** * Gets external storage path. * * @return the external storage path */ public static String getExternalStoragePath() { if ( Environment.getExternalStorageState().equals( Environment.MEDIA_MOUNTED ) ) { return Environment.getExternalStorageDirectory().getAbsolutePath(); } else { return Environment.MEDIA_UNMOUNTED; } }
Example 3
Project: AndroidSDK2.0 File: MainActivity.java View Source Code | 5 votes |
public String getExternalStoragePath() { if ( Environment.getExternalStorageState().equals( Environment.MEDIA_MOUNTED ) ) { return Environment.getExternalStorageDirectory().getAbsolutePath(); } else { return Environment.MEDIA_UNMOUNTED; } }