예제 #1
1
 @Override
 public void onPause(boolean multitasking) {
   super.onPause(multitasking);
   gForeground = false;
   final NotificationManager notificationManager =
       (NotificationManager) cordova.getActivity().getSystemService(Context.NOTIFICATION_SERVICE);
   //    notificationManager.cancelAll();
 }
예제 #2
0
  @Override
  public void onPause(boolean multitasking) {
    super.onPause(multitasking);
    Log.i("Backgroundgps", "~~ onPause");

    // This does get called when the app gets paused, so unregister from the bus

    Log.i("Backgroundgps", "~~ unregister");
    Backgroundgps.getBus().unregister(this);
  }
  @Override
  public void onPause(boolean multitasking) {
    super.onPause(multitasking);
    gForeground = false;

    SharedPreferences prefs =
        getApplicationContext().getSharedPreferences(COM_ADOBE_PHONEGAP_PUSH, Context.MODE_PRIVATE);
    if (prefs.getBoolean(CLEAR_NOTIFICATIONS, true)) {
      clearAllNotifications();
    }
  }
예제 #4
0
  @Override
  public void onPause(boolean multitasking) {
    super.onPause(multitasking);
    gForeground = false;

    SharedPreferences prefs =
        getApplicationContext().getSharedPreferences(COM_ADOBE_PHONEGAP_PUSH, Context.MODE_PRIVATE);
    if (prefs.getBoolean(CLEAR_NOTIFICATIONS, true)) {
      final NotificationManager notificationManager =
          (NotificationManager)
              cordova.getActivity().getSystemService(Context.NOTIFICATION_SERVICE);
      notificationManager.cancelAll();
    }
  }
예제 #5
0
 @Override
 public void onPause(boolean multitasking) {
   super.onPause(multitasking);
   gForeground = false;
 }
 @Override
 public void onPause(boolean multitasking) {
   super.onPause(multitasking);
   MobclickAgent.onPause(webView.getContext());
 }
 @Override
 public void onPause(boolean multitasking) {
   super.onPause(multitasking);
   this.geotrigger.onPause();
 }
 @Override
 public void onPause(boolean multitasking) {
   super.onPause(multitasking);
   AppEventsLogger.deactivateApp(cordova.getActivity());
 }