Example #1
0
 public void destroy() {
   try {
     unregisterReceiver(mScreenReceiver);
   } catch (Exception e) {
     Logger.w(TAG, "destroy(), e:" + e);
   }
   if (mTimer != null) {
     mTimer.cancel();
     mTimer = null;
   }
   onAppVisibilityChange = null;
 }
Example #2
0
 private static void onAppRestored() {
   Logger.w(TAG, "onAppRestored()");
 }