GooglePlayServices.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:googleplayservices 作者:
@Override public void onConnectionFailed (ConnectionResult result) {
 String errormessage = result.toString();
 Log.w (LOG_TAG, errormessage);
 connectionAttempts += 1;
 if (!result.hasResolution() || connectionAttempts >= 2) {
  Log.w (LOG_TAG, "Error: no resolution. Google Play Services connection failed.");
  tryConnectCallback.error ("Error: " + errormessage + "."); tryConnectCallback = null;
  return;
 }
 try {
  result.startResolutionForResult (cordova.getActivity(), result.getErrorCode());
 } catch (SendIntentException e) {
  // There was an error with the resolution intent. Try again.
  mGoogleApiClient.connect ();
 }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号