public abstract class StorageEventListener extends Object
Constructor and Description |
---|
StorageEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
onStorageStateChanged(String path,
String oldState,
String newState)
Called when storage has changed state
|
void |
onUsbMassStorageConnectionChanged(boolean connected)
Called when the detection state of a USB Mass Storage host has changed.
|
public void onUsbMassStorageConnectionChanged(boolean connected)
connected
- true if the USB mass storage is connected.public void onStorageStateChanged(String path, String oldState, String newState)
path
- the filesystem path for the storageoldState
- the old state as returned by Environment.getExternalStorageState()
.newState
- the old state as returned by Environment.getExternalStorageState()
.