コード例 #1
0
  public void doExit() {
    mLogger.info("Application exiting");

    if (mWalletService != null) mWalletService.shutdown();

    mLogger.info("Stopping WalletService");
    stopService(new Intent(this, WalletService.class));

    // Cancel any remaining notifications.
    NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
    nm.cancelAll();

    // Kill everything
    mLogger.info("Exiting");
    System.exit(0);
  }
コード例 #2
0
 public void cancelBackgroundTimeout() {
   if (mWalletService != null) mWalletService.cancelBackgroundTimeout();
 }
コード例 #3
0
 public void startBackgroundTimeout() {
   if (mWalletService != null) mWalletService.startBackgroundTimeout();
 }