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); }
public void cancelBackgroundTimeout() { if (mWalletService != null) mWalletService.cancelBackgroundTimeout(); }
public void startBackgroundTimeout() { if (mWalletService != null) mWalletService.startBackgroundTimeout(); }