FileDocCategorySizeDatePackage
StorageListener.javaAPI DocAndroid 5.1 API1443Thu Mar 12 22:22:12 GMT 2015android.os.storage

StorageListener

public class StorageListener extends StorageEventListener

Fields Summary
private static final boolean
localLOGV
public static final String
TAG
private String
mTargetState
private boolean
doneFlag
Constructors Summary
public StorageListener(String targetState)


       
        mTargetState = targetState;
    
Methods Summary
public booleanisDone()

        return doneFlag;
    
public voidonStorageStateChanged(java.lang.String path, java.lang.String oldState, java.lang.String newState)

        if (localLOGV) Log.i(TAG, "Storage state changed from " + oldState + " to " + newState);

        synchronized (this) {
            if (mTargetState.equals(newState)) {
                doneFlag = true;
                notifyAll();
            }
        }