private void exitApp(Context context) { Intent serviceIntent = new Intent(context, AutoUpdateService.class); context.stopService(serviceIntent); // 清除通知; NotificationManager notiManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); notiManager.cancelAll(); CacheManager.getInstance().clear(); GlobalVars.clear(); HttpRequestHelper.shutdown(); android.os.Process.killProcess(android.os.Process.myPid()); }