Code example for AppWidgetHost

Methods: stopListening

0
    //mDestroyed = true; 
 
    super.onDestroy(); 
 
    try { 
        mAppWidgetHost.stopListening();
    } catch (NullPointerException ex) {
        Log.w("lockscreen destroy", "problem while stopping AppWidgetHost during Lockscreen destruction", ex);
    } 
} 
 
}