@Override public void getNetWorkMsg(String msg, String param) throws JSONException { ResponseIsDel rr = new Gson().fromJson(msg, ResponseIsDel.class); if (rr.getCode() == 110010) { String name = SharedPreferencesUtils.getInstance().getLoginUserName(); SharedPreferencesUtils.getInstance().saveForIsLoginSave(name, false); } }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getSave(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main); ActivityTaskManager.getInstance().putActivity(this.getClass().getName(), this); String name = SharedPreferencesUtils.getInstance().getLoginUserName(); if (name != null) { Map<String, Object> map = new HashMap<String, Object>(); map.put("mobile", name); askNewWork = new AskNetWork(map, NetConst.IS_DEL, this); askNewWork.ask(null); } init(); initEvents(); EventBus.getDefault().register(this); }