Code example for FileObserver

Methods: stopWatching

0
            // let's not let it crash the system and just live with no 
            // wallpaper. 
            Slog.e(TAG, "Default wallpaper component not found!", e);
        } finally { 
            Binder.restoreCallingIdentity(ident);
        } 
    } 
 
    public void setDimensionHints(int width, int height) throws RemoteException {
        checkPermission(android.Manifest.permission.SET_WALLPAPER_HINTS);
 
        if (width <= 0 || height <= 0) {
            throw new IllegalArgumentException("width and height must be > 0");
        } 
 
        synchronized (mLock) {
            if (width != mWidth || height != mHeight) {
                mWidth = width;
                mHeight = height;
                saveSettingsLocked(); 
                if (mWallpaperConnection != null) {