Java 类com.google.zxing.client.android.history.HistoryActivity 实例源码

项目:weex-3d-map    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    int i = item.getItemId();
    if (i == R.id.menu_history) {
        intent.setClassName(this, HistoryActivity.class.getName());
        startActivityForResult(intent, HISTORY_REQUEST_CODE);

        // case R.id.menu_settings:
        // intent.setClassName(this, PreferencesActivity.class.getName());
        // startActivity(intent);
        // break;
        // case R.id.menu_help:
        // intent.setClassName(this, HelpActivity.class.getName());
        // startActivity(intent);
        // break;
    } else {
        return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:PortraitZXing    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    switch (item.getItemId()) {
    case R.id.menu_share:
        intent.setClassName(this, ShareActivity.class.getName());
        startActivity(intent);
        break;
    case R.id.menu_history:
        intent.setClassName(this, HistoryActivity.class.getName());
        startActivityForResult(intent, HISTORY_REQUEST_CODE);
        break;
    case R.id.menu_settings:
        intent.setClassName(this, PreferencesActivity.class.getName());
        startActivity(intent);
        break;
    case R.id.menu_help:
        intent.setClassName(this, HelpActivity.class.getName());
        startActivity(intent);
        break;
    default:
        return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:PortraitZXing    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    switch (item.getItemId()) {
    case R.id.menu_share:
        intent.setClassName(this, ShareActivity.class.getName());
        startActivity(intent);
        break;
    case R.id.menu_history:
        intent.setClassName(this, HistoryActivity.class.getName());
        startActivityForResult(intent, HISTORY_REQUEST_CODE);
        break;
    case R.id.menu_settings:
        intent.setClassName(this, PreferencesActivity.class.getName());
        startActivity(intent);
        break;
    case R.id.menu_help:
        intent.setClassName(this, HelpActivity.class.getName());
        startActivity(intent);
        break;
    default:
        return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:PortraitZXing    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    switch (item.getItemId()) {
    case R.id.menu_share:
        intent.setClassName(this, ShareActivity.class.getName());
        startActivity(intent);
        break;
    case R.id.menu_history:
        intent.setClassName(this, HistoryActivity.class.getName());
        startActivityForResult(intent, HISTORY_REQUEST_CODE);
        break;
    case R.id.menu_settings:
        intent.setClassName(this, PreferencesActivity.class.getName());
        startActivity(intent);
        break;
    case R.id.menu_help:
        intent.setClassName(this, HelpActivity.class.getName());
        startActivity(intent);
        break;
    default:
        return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:PortraitZXing    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    switch (item.getItemId()) {
    case R.id.menu_share:
        intent.setClassName(this, ShareActivity.class.getName());
        startActivity(intent);
        break;
    case R.id.menu_history:
        intent.setClassName(this, HistoryActivity.class.getName());
        startActivityForResult(intent, HISTORY_REQUEST_CODE);
        break;
    case R.id.menu_settings:
        intent.setClassName(this, PreferencesActivity.class.getName());
        startActivity(intent);
        break;
    case R.id.menu_help:
        intent.setClassName(this, HelpActivity.class.getName());
        startActivity(intent);
        break;
    default:
        return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:weex-analyzer-android    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    int i = item.getItemId();
    if (i == R.id.menu_history) {
        intent.setClassName(this, HistoryActivity.class.getName());
        startActivityForResult(intent, HISTORY_REQUEST_CODE);

        // case R.id.menu_settings:
        // intent.setClassName(this, PreferencesActivity.class.getName());
        // startActivity(intent);
        // break;
        // case R.id.menu_help:
        // intent.setClassName(this, HelpActivity.class.getName());
        // startActivity(intent);
        // break;
    } else {
        return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:weex-3d-map    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    int i = item.getItemId();
    if (i == R.id.menu_history) {
        intent.setClassName(this, HistoryActivity.class.getName());
        startActivityForResult(intent, HISTORY_REQUEST_CODE);

        // case R.id.menu_settings:
        // intent.setClassName(this, PreferencesActivity.class.getName());
        // startActivity(intent);
        // break;
        // case R.id.menu_help:
        // intent.setClassName(this, HelpActivity.class.getName());
        // startActivity(intent);
        // break;
    } else {
        return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:Weex-TestDemo    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    int i = item.getItemId();
    if (i == R.id.menu_history) {
        intent.setClassName(this, HistoryActivity.class.getName());
        startActivityForResult(intent, HISTORY_REQUEST_CODE);

        // case R.id.menu_settings:
        // intent.setClassName(this, PreferencesActivity.class.getName());
        // startActivity(intent);
        // break;
        // case R.id.menu_help:
        // intent.setClassName(this, HelpActivity.class.getName());
        // startActivity(intent);
        // break;
    } else {
        return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:weex    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    int i = item.getItemId();
    if (i == R.id.menu_history) {
        intent.setClassName(this, HistoryActivity.class.getName());
        startActivityForResult(intent, HISTORY_REQUEST_CODE);

        // case R.id.menu_settings:
        // intent.setClassName(this, PreferencesActivity.class.getName());
        // startActivity(intent);
        // break;
        // case R.id.menu_help:
        // intent.setClassName(this, HelpActivity.class.getName());
        // startActivity(intent);
        // break;
    } else {
        return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:sres-app    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  int itemId = item.getItemId();
  if (itemId == fakeR.getId("id", "menu_share")) {
      intent.setClassName(this, ShareActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_history")) {
      intent.setClassName(this, HistoryActivity.class.getName());
      startActivityForResult(intent, HISTORY_REQUEST_CODE);
  } else if (itemId == fakeR.getId("id", "menu_settings")) {
      intent.setClassName(this, PreferencesActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_help")) {
      intent.setClassName(this, HelpActivity.class.getName());
      startActivity(intent);
  } else {
      return super.onOptionsItemSelected(item);
  }
  return true;
}
项目:Discounty    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    switch (item.getItemId()) {
        case R.id.menu_share:
            intent.setClassName(this, ShareActivity.class.getName());
            startActivity(intent);
            break;
        case R.id.menu_history:
            intent.setClassName(this, HistoryActivity.class.getName());
            startActivityForResult(intent, HISTORY_REQUEST_CODE);
            break;
        case R.id.menu_settings:
            intent.setClassName(this, PreferencesActivity.class.getName());
            startActivity(intent);
            break;
        case R.id.menu_help:
            intent.setClassName(this, HelpActivity.class.getName());
            startActivity(intent);
            break;
        default:
            return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:reacteu-app    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  int itemId = item.getItemId();
  if (itemId == fakeR.getId("id", "menu_share")) {
      intent.setClassName(this, ShareActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_history")) {
      intent.setClassName(this, HistoryActivity.class.getName());
      startActivityForResult(intent, HISTORY_REQUEST_CODE);
  } else if (itemId == fakeR.getId("id", "menu_settings")) {
      intent.setClassName(this, PreferencesActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_help")) {
      intent.setClassName(this, HelpActivity.class.getName());
      startActivity(intent);
  } else {
      return super.onOptionsItemSelected(item);
  }
  return true;
}
项目:CordovaDemo    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  int itemId = item.getItemId();
  if (itemId == fakeR.getId("id", "menu_share")) {
      intent.setClassName(this, ShareActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_history")) {
      intent.setClassName(this, HistoryActivity.class.getName());
      startActivityForResult(intent, HISTORY_REQUEST_CODE);
  } else if (itemId == fakeR.getId("id", "menu_settings")) {
      intent.setClassName(this, PreferencesActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_help")) {
      intent.setClassName(this, HelpActivity.class.getName());
      startActivity(intent);
  } else {
      return super.onOptionsItemSelected(item);
  }
  return true;
}
项目:ng-cordova-demo    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  int itemId = item.getItemId();
  if (itemId == fakeR.getId("id", "menu_share")) {
      intent.setClassName(this, ShareActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_history")) {
      intent.setClassName(this, HistoryActivity.class.getName());
      startActivityForResult(intent, HISTORY_REQUEST_CODE);
  } else if (itemId == fakeR.getId("id", "menu_settings")) {
      intent.setClassName(this, PreferencesActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_help")) {
      intent.setClassName(this, HelpActivity.class.getName());
      startActivity(intent);
  } else {
      return super.onOptionsItemSelected(item);
  }
  return true;
}
项目:ngCordova-demo    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  int itemId = item.getItemId();
  if (itemId == fakeR.getId("id", "menu_share")) {
      intent.setClassName(this, ShareActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_history")) {
      intent.setClassName(this, HistoryActivity.class.getName());
      startActivityForResult(intent, HISTORY_REQUEST_CODE);
  } else if (itemId == fakeR.getId("id", "menu_settings")) {
      intent.setClassName(this, PreferencesActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_help")) {
      intent.setClassName(this, HelpActivity.class.getName());
      startActivity(intent);
  } else {
      return super.onOptionsItemSelected(item);
  }
  return true;
}
项目:CordovaW8BarcodeDemo    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  int itemId = item.getItemId();
  if (itemId == fakeR.getId("id", "menu_share")) {
      intent.setClassName(this, ShareActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_history")) {
      intent.setClassName(this, HistoryActivity.class.getName());
      startActivityForResult(intent, HISTORY_REQUEST_CODE);
  } else if (itemId == fakeR.getId("id", "menu_settings")) {
      intent.setClassName(this, PreferencesActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_help")) {
      intent.setClassName(this, HelpActivity.class.getName());
      startActivity(intent);
  } else {
      return super.onOptionsItemSelected(item);
  }
  return true;
}
项目:zxing-android-portrait    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  switch (item.getItemId()) {
    case R.id.menu_share:
      intent.setClassName(this, ShareActivity.class.getName());
      startActivity(intent);
      break;
    case R.id.menu_history:
      intent.setClassName(this, HistoryActivity.class.getName());
      startActivityForResult(intent, HISTORY_REQUEST_CODE);
      break;
    case R.id.menu_settings:
      intent.setClassName(this, PreferencesActivity.class.getName());
      startActivity(intent);
      break;
    case R.id.menu_help:
      intent.setClassName(this, HelpActivity.class.getName());
      startActivity(intent);
      break;
    default:
      return super.onOptionsItemSelected(item);
  }
  return true;
}
项目:cordova-template    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  int itemId = item.getItemId();
  if (itemId == fakeR.getId("id", "menu_share")) {
      intent.setClassName(this, ShareActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_history")) {
      intent.setClassName(this, HistoryActivity.class.getName());
      startActivityForResult(intent, HISTORY_REQUEST_CODE);
  } else if (itemId == fakeR.getId("id", "menu_settings")) {
      intent.setClassName(this, PreferencesActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_help")) {
      intent.setClassName(this, HelpActivity.class.getName());
      startActivity(intent);
  } else {
      return super.onOptionsItemSelected(item);
  }
  return true;
}
项目:oxPush    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  int itemId = item.getItemId();
  if (itemId == fakeR.getId("id", "menu_share")) {
      intent.setClassName(this, ShareActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_history")) {
      intent.setClassName(this, HistoryActivity.class.getName());
      startActivityForResult(intent, HISTORY_REQUEST_CODE);
  } else if (itemId == fakeR.getId("id", "menu_settings")) {
      intent.setClassName(this, PreferencesActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_help")) {
      intent.setClassName(this, HelpActivity.class.getName());
      startActivity(intent);
  } else {
      return super.onOptionsItemSelected(item);
  }
  return true;
}
项目:hive-ios    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  int itemId = item.getItemId();
  if (itemId == fakeR.getId("id", "menu_share")) {
      intent.setClassName(this, ShareActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_history")) {
      intent.setClassName(this, HistoryActivity.class.getName());
      startActivityForResult(intent, HISTORY_REQUEST_CODE);
  } else if (itemId == fakeR.getId("id", "menu_settings")) {
      intent.setClassName(this, PreferencesActivity.class.getName());
      startActivity(intent);
  } else if (itemId == fakeR.getId("id", "menu_help")) {
      intent.setClassName(this, HelpActivity.class.getName());
      startActivity(intent);
  } else {
      return super.onOptionsItemSelected(item);
  }
  return true;
}
项目:AndroidMultiChannelMiddleware    文件:CaptureActivity.java   
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    int itemId = item.getItemId();
    if (itemId == R.id.menu_share) {
        intent.setClassName(this, ShareActivity.class.getName());
        startActivity(intent);
    } else if (itemId == R.id.menu_history) {
        intent.setClassName(this, HistoryActivity.class.getName());
        startActivityForResult(intent, HISTORY_REQUEST_CODE);
    } else if (itemId == R.id.menu_settings) {
        intent.setClassName(this, PreferencesActivity.class.getName());
        startActivity(intent);
    } else if (itemId == R.id.menu_help) {
        intent.setClassName(this, HelpActivity.class.getName());
        startActivity(intent);
    } else {
        return super.onOptionsItemSelected(item);
    }
    return true;
}
项目:faims-android    文件:CaptureActivity.java   
@Override
 public boolean onOptionsItemSelected(MenuItem item) {
   Intent intent = new Intent(Intent.ACTION_VIEW);
   intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
   int itemId = item.getItemId();
if (itemId == R.id.menu_share)
{
    intent.setClassName(this, ShareActivity.class.getName());
    startActivity(intent);
} else if (itemId == R.id.menu_history)
{
    intent.setClassName(this, HistoryActivity.class.getName());
    startActivityForResult(intent, HISTORY_REQUEST_CODE);
} else if (itemId == R.id.menu_settings)
{
    intent.setClassName(this, PreferencesActivity.class.getName());
    startActivity(intent);
} else if (itemId == R.id.menu_help)
{
    intent.setClassName(this, HelpActivity.class.getName());
    startActivity(intent);
} else
{
    return super.onOptionsItemSelected(item);
}
   return true;
 }