Пример #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   LogCat.i("--->", "onCreate");
   setContentView(R.layout.activity_main);
   initialize();
 }
Пример #2
0
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   LogCat.i("--->", "requestCode:" + requestCode + " Result ok?:" + resultCode);
   super.onActivityResult(requestCode, resultCode, data);
   if (mPublishFragment != null && mPublishFragment.isMyRequest(requestCode)) {
     LogCat.i("--->", "mPublishFragment->onActivityResult");
     mPublishFragment.onActivityResult(requestCode, resultCode, data);
   } else if (requestCode == LoginDialog.REQUEST_CODE && resultCode == RESULT_OK) {
     if (mCenterFragment == null) {
       mCenterFragment = new CenterFragment();
     }
     changeFrag(mCenterFragment, mCurFragment);
     centerrb.setChecked(true);
   } else if (requestCode == BaseFragment.TO_SCAN) {
     if (!mMainFramgent.isHidden()) {
       mMainFramgent.onActivityResult(requestCode, resultCode, data);
     } else if (!mFindFrament.isHidden()) {
       mFindFrament.onActivityResult(requestCode, resultCode, data);
     }
   }
 }
Пример #3
0
 @Override
 protected void onRestart() {
   super.onRestart();
   LogCat.i("--->", "onRestart");
 }
Пример #4
0
 @Override
 protected void onResume() {
   super.onResume();
   LogCat.i("--->", "onResume");
 }