private void initStatus() {
    TextView tv = (TextView) findViewById(R.id.status);
    tv.setText(MbcpUtil.sEnvStatus);

    CheckBox cb = (CheckBox) findViewById(R.id.cb_no_dex_dep);
    cb.setEnabled(mIsEnvReady);
    if (mIsEnvReady) {
      cb.setChecked(MbcpUtil.isDexDepDisable());
      if (!mIsInited) {
        cb.setOnCheckedChangeListener(
            new CompoundButton.OnCheckedChangeListener() {
              @Override
              public void onCheckedChanged(CompoundButton b, boolean checked) {
                MbcpUtil.setDexDepDisable(checked);
              }
            });
      }
    }
  }
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   if (item.getItemId() == 0) {
     mInfoDialog.show(
         getFragmentManager(),
         "Usage",
         "AndroidManifest example:\n"
             + "<application>\n"
             + "  <meta-data android:name=\"mbcpDescription\" android:value=\"My patch\" />\n"
             + "  <meta-data android:name=\"mbcpTargetJarPath\" android:value=\"/system/framework/services.jar\" />\n"
             + "</application>");
   } else if (item.getItemId() == 1) {
     mInfoDialog.show(getFragmentManager(), "BOOTCLASSPATH", Libcore.os.getenv("BOOTCLASSPATH"));
   } else if (item.getItemId() == 2) {
     mInfoDialog.show(getFragmentManager(), "MBCP Config", MbcpUtil.getMbcpFileContent());
   } else if (item.getItemId() == 3) {
     mForceReload = true;
     refreshList();
   }
   return super.onOptionsItemSelected(item);
 }
 @Override
 public void run() {
   mIsEnvReady = MbcpUtil.isEnvReady(mContext);
   initStatus();
   initButton();
 };