@Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.layout_udp_monitor_activity);

    handleTitleDisplay(
        getString(R.string.btn_title_back),
        getString(R.string.str_setting_item_netcheck),
        getString(R.string.btn_clear_all_text));

    mSocketLayer = new UDPSocketUtil();
    tryAgain = (Button) findViewById(R.id.try_again);
    tryAgain.setOnClickListener(this);
    clearBuuton = (Button) findViewById(R.id.clear);
    clearBuuton.setOnClickListener(this);
    udpSend = (TextView) findViewById(R.id.totlesend);
    updReceive = (TextView) findViewById(R.id.totlereceive);
    losebacket = (TextView) findViewById(R.id.lostrate);
    maxDelay = (TextView) findViewById(R.id.maxdelay);
    minDelay = (TextView) findViewById(R.id.mindelay);
    avarageDelay = (TextView) findViewById(R.id.avaragedelay);
    startTimer();

    mSocketLayer.start();
    tryAgain.setEnabled(false);
    clearBuuton.setEnabled(true);
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.layout_voice_verificaode_activity);

    handleTitleDisplay(
        getString(R.string.btn_title_back), getString(R.string.app_title_veri_code), null);

    initResourceRefs();

    RestHelper.getInstance().setOnRestHelperListener(this);
  }
Ejemplo n.º 3
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.layout_video_activity);

    handleTitleDisplay(
        getString(R.string.btn_title_back), getString(R.string.app_title_video), null);
    VoiceHelper.getInstance().setHandler(mHandler);
    initResourceRefs();
    initialize();

    cameraInfos = VoiceHelper.getInstance().getDevice().getCameraInfo();

    // Find the ID of the default camera
    if (cameraInfos != null && cameraInfos.length != 0) {
      defaultCameraId = cameraInfos[cameraInfos.length - 1].index;
    }
    VoiceHelper.getInstance().getDevice().selectCamera(defaultCameraId, 0, 15, Rotate.Rotate_Auto);
    mCurrentCallId =
        VoiceHelper.getInstance().getDevice().makeCall(Device.CallType.VIDEO, mVoipAccount);

    registerReceiver(new String[] {SettingsActivity.INTENT_P2P_ENABLED});
  }