Ejemplo n.º 1
0
  protected void onStart() {
    super.onStart();

    refuel = (ImageView) findViewById(R.id.refuel);
    camera = (ImageView) findViewById(R.id.camera);
    testImage = (ImageView) findViewById(R.id.leftmenu);
    logoView = (ImageView) findViewById(R.id.logoView);
    if (logoView == null || refuel == null || logoView == null) {
      return;
    }
    logoView.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View v) {
            back();
          }
        });
    refuel.setOnClickListener(
        new OnClickListener() {
          @Override
          public void onClick(View v) {
            Intent intent = new Intent();
            intent.putExtra("subject", "心理加油站");
            intent.putExtra("directory", "心理加油站");
            intent.setClass(BaseActivity.this, Chinese.class);
            intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
            startActivity(intent);
          }
        });
    testImage.setOnClickListener(
        new OnClickListener() {
          @Override
          public void onClick(View v) {
            initPopWindow(testImage);
          }
        });
  }
Ejemplo n.º 2
0
 @Override
 protected void onStart() {
   super.onStart();
   activityHandler.add(this);
 }
 @Override
 protected void onStart() {
   super.onStart();
   EUtil.loge("App onStart");
   reflectionPluginMethod("onActivityStart");
 }