congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CommonStatusCodes
Code IndexAdd Tabnine to your IDE (free)

How to use
CommonStatusCodes
in
com.google.android.gms.common.api

Best Java code snippets using com.google.android.gms.common.api.CommonStatusCodes (Showing top 6 results out of 315)

origin: googlesamples/android-vision

CommonStatusCodes.getStatusCodeString(resultCode)));
origin: googlesamples/android-vision

CommonStatusCodes.getStatusCodeString(resultCode)));
origin: microg/android_external_GmsApi

  /**
   * Returns an untranslated debug (not user-friendly!) string based on the current status code.
   */
  public static String getStatusCodeString(int statusCode) {
    switch (statusCode) {
      case GEOFENCE_NOT_AVAILABLE:
        return "GEOFENCE_NOT_AVAILABLE";
      case GEOFENCE_TOO_MANY_GEOFENCES:
        return "GEOFENCE_TOO_MANY_GEOFENCES";
      case GEOFENCE_TOO_MANY_PENDING_INTENTS:
        return "GEOFENCE_TOO_MANY_PENDING_INTENTS";
      default:
        return CommonStatusCodes.getStatusCodeString(statusCode);
    }
  }
}
origin: thegenuinegourav/Questor

CommonStatusCodes.getStatusCodeString(resultCode)));
origin: TrustWallet/trust-wallet-android-source

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  if (requestCode == BARCODE_READER_REQUEST_CODE) {
    if (resultCode == CommonStatusCodes.SUCCESS) {
      if (data != null) {
        Barcode barcode = data.getParcelableExtra(BarcodeCaptureActivity.BarcodeObject);
        QRURLParser parser = QRURLParser.getInstance();
        String extracted_address = parser.extractAddressFromQrString(barcode.displayValue);
        if (extracted_address == null) {
          Toast.makeText(this, R.string.toast_qr_code_no_address, Toast.LENGTH_SHORT).show();
          return;
        }
        Point[] p = barcode.cornerPoints;
        toAddressText.setText(extracted_address);
      }
    } else {
      Log.e("SEND", String.format(getString(R.string.barcode_error_format),
          CommonStatusCodes.getStatusCodeString(resultCode)));
    }
  } else {
    super.onActivityResult(requestCode, resultCode, data);
  }
}
origin: googlesamples/android-play-safetynet

  @Override
  public void onFailure(@NonNull Exception e) {
    // An error occurred while communicating with the service.
    mResult = null;
    if (e instanceof ApiException) {
      // An error with the Google Play Services API contains some additional details.
      ApiException apiException = (ApiException) e;
      Log.d(TAG, "Error: " +
          CommonStatusCodes.getStatusCodeString(apiException.getStatusCode()) + ": " +
          apiException.getStatusMessage());
    } else {
      // A different, unknown type of error occurred.
      Log.d(TAG, "ERROR! " + e.getMessage());
    }
  }
};
com.google.android.gms.common.apiCommonStatusCodes

Most used methods

  • getStatusCodeString

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Menu (java.awt)
  • Path (java.nio.file)
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JFileChooser (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now