private void refreshExit(String result) {
   EMChatManager.getInstance().logout();
   ShareSDK.stopSDK(this);
   Intent intent = new Intent(this, IfanService.class);
   stopService(intent);
   android.os.Process.killProcess(android.os.Process.myPid());
 }
  private void doExitTask() {
    finish();
    ShareSDK.stopSDK(this);
    IfanService.emptyList();
    Intent intent = new Intent(this, IfanService.class);
    stopService(intent);
    android.os.Process.killProcess(android.os.Process.myPid());

    /*		Map<String, Object> taskParams = new HashMap<String, Object>();
    taskParams.put(Task.FAN_ACTIVITY, HomePageActivity.class.getSimpleName());
    Task task = new Task(Task.FAN_EXIT, taskParams);
    IfanService.addTask(task);	*/
  }
示例#3
0
 @Override
 protected void onDestroy() {
   ShareSDK.stopSDK(MainActivity.this);
   super.onDestroy();
 }
 protected void onDestroy() {
   super.onDestroy();
   ShareSDK.stopSDK(this);
 }