@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.userinfo_detail); initType(); initView(); initData(); registerListener(); requestAsyn(); }
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); CreateKnowFacade.getInstance().registerListener(this); if (resultCode == RESULT_OK && requestCode == 1) { String msg = data.getExtras().getString("msg"); RequestInfo info = new RequestInfo(RequestInfo.TypeReply, msg); if (mAdapter == null) { List<RequestInfo> datas = new ArrayList<RequestInfo>(); datas.add(info); mAdapter = new ReplyGridViewAdapter(datas, mUid); mReplyGridView.setAdapter(mAdapter); } else { mAdapter.addRequestInfo(info); } mReplyBlock.setVisibility(View.VISIBLE); } }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.setting_user_account_view); initView(); }
@Override protected void onDestroy() { unRegisterListener(); super.onDestroy(); }