Example usage for android.os FileObserver stopWatching

List of usage examples for android.os FileObserver stopWatching

Introduction

In this page you can find the example usage for android.os FileObserver stopWatching.

Prototype

public void stopWatching() 

Source Link

Document

Stop watching for events.

Usage

From source file:org.camlistore.UploadService.java

private void stopBackgroundWatchers() {
    synchronized (UploadService.this) {
        if (mObservers.isEmpty()) {
            return;
        }//from  w w w  .  j a v a2s .  c  o m
        Log.d(TAG, "Stopping background watchers...");
        for (FileObserver fo : mObservers) {
            fo.stopWatching();
        }
        mObservers.clear();
    }
}