Code example for AppWidgetHost

Methods: startListening

0
  super.onResume(); 
  Log.v("lock resume","resuming, focus is " + hasWindowFocus());
 
  paused = false;  
   
  if (mAppWidgetHost != null) mAppWidgetHost.startListening();
   
  updateClock(); 
} 
 
@Override 
public void onDestroy() { 
  super.onDestroy(); 
           
 serviceHandler.removeCallbacks(myTask);
 
 serviceHandler = null;
  
 unregisterReceiver(callStarted);
 unregisterReceiver(callPending);
 unregisterReceiver(idleExit);