@Override
 protected void onDetachedFromWindow() {
   super.onDetachedFromWindow();
   if (sessionTracker != null) {
     sessionTracker.stopTracking();
   }
 }
 @Override
 protected void onAttachedToWindow() {
   super.onAttachedToWindow();
   if (sessionTracker != null && !sessionTracker.isTracking()) {
     sessionTracker.startTracking();
     fetchUserInfo();
     setButtonText();
   }
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(com.dp.familyorganaizer.R.layout.family_journal);

    btn_new_msg = (Button) findViewById(com.dp.familyorganaizer.R.id.btn_new_msg);
    btn_new_msg.setOnClickListener(this);

    btn_edit_msg = (Button) findViewById(com.dp.familyorganaizer.R.id.btn_edit_msg);
    btn_edit_msg.setOnClickListener(this);

    btn_delete_msg = (Button) findViewById(com.dp.familyorganaizer.R.id.btn_delete_msg);
    btn_delete_msg.setOnClickListener(this);

    //			txtview = (TextView) findViewById(com.dp.familyorganaizer.R.id.txtview);
    //			txtview.setText("Hello there!");
    //			txtview.setOnClickListener(this);
  }
 @Override
 public void onFinishInflate() {
   super.onFinishInflate();
   finishInit();
 }