コード例 #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.userinfo_detail);
   initType();
   initView();
   initData();
   registerListener();
   requestAsyn();
 }
コード例 #2
0
 @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);
   }
 }
コード例 #3
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.setting_user_account_view);
   initView();
 }
コード例 #4
0
 @Override
 protected void onDestroy() {
   unRegisterListener();
   super.onDestroy();
 }