android.os
Class Environment

java.lang.Object
  extended by android.os.Environment

public class Environment
extends Object


Field Summary
static String DIRECTORY_ALARMS
           
static String DIRECTORY_DCIM
           
static String DIRECTORY_DOWNLOADS
           
static String DIRECTORY_MOVIES
           
static String DIRECTORY_MUSIC
           
static String DIRECTORY_NOTIFICATIONS
           
static String DIRECTORY_PICTURES
           
static String DIRECTORY_PODCASTS
           
static String DIRECTORY_RINGTONES
           
static String MEDIA_BAD_REMOVAL
           
static String MEDIA_CHECKING
           
static String MEDIA_MOUNTED
           
static String MEDIA_MOUNTED_READ_ONLY
           
static String MEDIA_NOFS
           
static String MEDIA_REMOVED
           
static String MEDIA_SHARED
           
static String MEDIA_UNMOUNTABLE
           
static String MEDIA_UNMOUNTED
           
 
Constructor Summary
Environment()
           
 
Method Summary
static File getDataDirectory()
           
static File getDownloadCacheDirectory()
           
static File getExternalStorageDirectory()
           
static File getExternalStoragePublicDirectory(String type)
           
static String getExternalStorageState()
           
static File getRootDirectory()
           
static boolean isExternalStorageEmulated()
           
static boolean isExternalStorageRemovable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRECTORY_MUSIC

public static String DIRECTORY_MUSIC

DIRECTORY_PODCASTS

public static String DIRECTORY_PODCASTS

DIRECTORY_RINGTONES

public static String DIRECTORY_RINGTONES

DIRECTORY_ALARMS

public static String DIRECTORY_ALARMS

DIRECTORY_NOTIFICATIONS

public static String DIRECTORY_NOTIFICATIONS

DIRECTORY_PICTURES

public static String DIRECTORY_PICTURES

DIRECTORY_MOVIES

public static String DIRECTORY_MOVIES

DIRECTORY_DOWNLOADS

public static String DIRECTORY_DOWNLOADS

DIRECTORY_DCIM

public static String DIRECTORY_DCIM

MEDIA_REMOVED

public static final String MEDIA_REMOVED
See Also:
Constant Field Values

MEDIA_UNMOUNTED

public static final String MEDIA_UNMOUNTED
See Also:
Constant Field Values

MEDIA_CHECKING

public static final String MEDIA_CHECKING
See Also:
Constant Field Values

MEDIA_NOFS

public static final String MEDIA_NOFS
See Also:
Constant Field Values

MEDIA_MOUNTED

public static final String MEDIA_MOUNTED
See Also:
Constant Field Values

MEDIA_MOUNTED_READ_ONLY

public static final String MEDIA_MOUNTED_READ_ONLY
See Also:
Constant Field Values

MEDIA_SHARED

public static final String MEDIA_SHARED
See Also:
Constant Field Values

MEDIA_BAD_REMOVAL

public static final String MEDIA_BAD_REMOVAL
See Also:
Constant Field Values

MEDIA_UNMOUNTABLE

public static final String MEDIA_UNMOUNTABLE
See Also:
Constant Field Values
Constructor Detail

Environment

public Environment()
Method Detail

getRootDirectory

public static File getRootDirectory()

getDataDirectory

public static File getDataDirectory()

getExternalStorageDirectory

public static File getExternalStorageDirectory()

getExternalStoragePublicDirectory

public static File getExternalStoragePublicDirectory(String type)

getDownloadCacheDirectory

public static File getDownloadCacheDirectory()

getExternalStorageState

public static String getExternalStorageState()

isExternalStorageRemovable

public static boolean isExternalStorageRemovable()

isExternalStorageEmulated

public static boolean isExternalStorageEmulated()


Copyright © 2008-2012. All Rights Reserved.