Java 类com.google.zxing.client.result.TelParsedResult 实例源码

项目:keepass2android    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:weex-3d-map    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:ZXingAndroidExt    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
    TelParsedResult telResult = (TelParsedResult) getResult();
    switch (index) {
        case 0:
            dialPhoneFromUri(telResult.getTelURI());
            // When dialer comes up, it allows underlying display activity to continue or something,
            // but app can't get camera in this state. Avoid issues by just quitting, only in the
            // case of a phone number
            getActivity().finish();
            break;
        case 1:
            String[] numbers = new String[1];
            numbers[0] = telResult.getNumber();
            addPhoneOnlyContact(numbers, null);
            break;
    }
}
项目:tvConnect_android    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:tvConnect_android    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:KeePass2Android    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:PortraitZXing    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
    TelParsedResult telResult = (TelParsedResult) getResult();
    switch (index) {
    case 0:
        dialPhoneFromUri(telResult.getTelURI());
        // When dialer comes up, it allows underlying display activity to
        // continue or something,
        // but app can't get camera in this state. Avoid issues by just
        // quitting, only in the
        // case of a phone number
        getActivity().finish();
        break;
    case 1:
        String[] numbers = new String[1];
        numbers[0] = telResult.getNumber();
        addPhoneOnlyContact(numbers, null);
        break;
    }
}
项目:PortraitZXing    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
    TelParsedResult telResult = (TelParsedResult) getResult();
    switch (index) {
    case 0:
        dialPhoneFromUri(telResult.getTelURI());
        // When dialer comes up, it allows underlying display activity to
        // continue or something,
        // but app can't get camera in this state. Avoid issues by just
        // quitting, only in the
        // case of a phone number
        getActivity().finish();
        break;
    case 1:
        String[] numbers = new String[1];
        numbers[0] = telResult.getNumber();
        addPhoneOnlyContact(numbers, null);
        break;
    }
}
项目:PortraitZXing    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
    TelParsedResult telResult = (TelParsedResult) getResult();
    switch (index) {
    case 0:
        dialPhoneFromUri(telResult.getTelURI());
        // When dialer comes up, it allows underlying display activity to
        // continue or something,
        // but app can't get camera in this state. Avoid issues by just
        // quitting, only in the
        // case of a phone number
        getActivity().finish();
        break;
    case 1:
        String[] numbers = new String[1];
        numbers[0] = telResult.getNumber();
        addPhoneOnlyContact(numbers, null);
        break;
    }
}
项目:PortraitZXing    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
    TelParsedResult telResult = (TelParsedResult) getResult();
    switch (index) {
    case 0:
        dialPhoneFromUri(telResult.getTelURI());
        // When dialer comes up, it allows underlying display activity to
        // continue or something,
        // but app can't get camera in this state. Avoid issues by just
        // quitting, only in the
        // case of a phone number
        getActivity().finish();
        break;
    case 1:
        String[] numbers = new String[1];
        numbers[0] = telResult.getNumber();
        addPhoneOnlyContact(numbers, null);
        break;
    }
}
项目:QRCodeUtility    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
    TelParsedResult telResult = (TelParsedResult) getResult();
    switch (index) {
        case 0:
            dialPhoneFromUri(telResult.getTelURI());
            // When dialer comes up, it allows underlying display activity to continue or something,
            // but app can't get camera in this state. Avoid issues by just quitting, only in the
            // case of a phone number
            getActivity().finish();
            break;
        case 1:
            String[] numbers = new String[1];
            numbers[0] = telResult.getNumber();
            addPhoneOnlyContact(numbers, null);
            break;
    }
}
项目:weex-analyzer-android    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:weex-3d-map    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:Weex-TestDemo    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:weex    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:sres-app    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:faims-android    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:Discounty    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
    TelParsedResult telResult = (TelParsedResult) getResult();
    switch (index) {
        case 0:
            dialPhoneFromUri(telResult.getTelURI());
            // When dialer comes up, it allows underlying display activity to continue or something,
            // but app can't get camera in this state. Avoid issues by just quitting, only in the
            // case of a phone number
            getActivity().finish();
            break;
        case 1:
            String[] numbers = new String[1];
            numbers[0] = telResult.getNumber();
            addPhoneOnlyContact(numbers, null);
            break;
    }
}
项目:reacteu-app    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:CordovaDemo    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:ng-cordova-demo    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:zxing-bsplus    文件:TelResultHandler.java   
@Override
public void handleClick(int buttonID) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (buttonID) {
    case R.id.button_dial:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case R.id.button_add_contact:
      addPhoneOnlyContact(new String[] {telResult.getNumber()}, null);
      break;
  }
}
项目:ngCordova-demo    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:CordovaW8BarcodeDemo    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:zxing-android-portrait    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:cordova-template    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:oxPush    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:hive-ios    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:AndroidMultiChannelMiddleware    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
    TelParsedResult telResult = (TelParsedResult) getResult();
    switch (index) {
    case 0:
        dialPhoneFromUri(telResult.getTelURI());
        // When dialer comes up, it allows underlying display activity to continue or something,
        // but app can't get camera in this state. Avoid issues by just quitting, only in the
        // case of a phone number
        getActivity().finish();
        break;
    case 1:
        String[] numbers = new String[1];
        numbers[0] = telResult.getNumber();
        addPhoneOnlyContact(numbers, null);
        break;
    }
}
项目:zxingfragmentlib    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      // When dialer comes up, it allows underlying display activity to continue or something,
      // but app can't get camera in this state. Avoid issues by just quitting, only in the
      // case of a phone number
      getActivity().finish();
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addPhoneOnlyContact(numbers, null);
      break;
  }
}
项目:BibSearch    文件:TelResultHandler.java   
@Override
public void handleButtonPress(int index) {
  TelParsedResult telResult = (TelParsedResult) getResult();
  switch (index) {
    case 0:
      dialPhoneFromUri(telResult.getTelURI());
      break;
    case 1:
      String[] numbers = new String[1];
      numbers[0] = telResult.getNumber();
      addContact(null, numbers, null, null, null, null, null);
      break;
  }
}