コード例 #1
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_b);
   getWindow().getAttributes().windowAnimations = R.style.Fade;
   mActivityName = getString(R.string.activity_b_label);
   mStatusView = (TextView) findViewById(R.id.status_view_b);
   mStatusAllView = (TextView) findViewById(R.id.status_view_all_b);
   mStatusTracker.setStatus(mActivityName, getString(R.string.on_create));
   Utils.printStatus(mStatusView, mStatusAllView);
 }
コード例 #2
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   mStatusTracker.setStatus(mActivityName, getString(R.string.on_destroy));
 }
コード例 #3
0
 @Override
 protected void onStop() {
   super.onStop();
   mStatusTracker.setStatus(mActivityName, getString(R.string.on_stop));
 }
コード例 #4
0
 @Override
 protected void onPause() {
   super.onPause();
   mStatusTracker.setStatus(mActivityName, getString(R.string.on_pause));
   Utils.printStatus(mStatusView, mStatusAllView);
 }