FileDocCategorySizeDatePackage
StorageEventListener.javaAPI DocAndroid 5.1 API1447Thu Mar 12 22:22:10 GMT 2015android.os.storage

StorageEventListener

public abstract class StorageEventListener extends Object
Used for receiving notifications from the StorageManager
hide

Fields Summary
Constructors Summary
Methods Summary
public voidonStorageStateChanged(java.lang.String path, java.lang.String oldState, java.lang.String newState)
Called when storage has changed state

param
path the filesystem path for the storage
param
oldState the old state as returned by {@link android.os.Environment#getExternalStorageState()}.
param
newState the old state as returned by {@link android.os.Environment#getExternalStorageState()}.

    
public voidonUsbMassStorageConnectionChanged(boolean connected)
Called when the detection state of a USB Mass Storage host has changed.

param
connected true if the USB mass storage is connected.