コード例 #1
0
 /// <summary>
 /// Removes the listener from the dataApi
 /// </summary>
 /// <param name="result"></param>
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     debugLog("Connection failed");
     WearableClass.DataApi.RemoveListener(googleApiClient, this);
     //connectionTextView.Visibility = ViewStates.Visible;
     connectionStatusHandler.updateStatus("Connection Failed");
 }
コード例 #2
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     if (Log.IsLoggable(Tag, LogPriority.Debug))
     {
         Log.Debug(Tag, "OnConnectionFailed: " + result);
     }
 }
コード例 #3
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     if (mResolvingError)
     {
         // Already attempting to resolve an error
         return;
     }
     else if (result.HasResolution)
     {
         try {
             mResolvingError = true;
             result.StartResolutionForResult(this, RequestResolveError);
         } catch (IntentSender.SendIntentException e) {
             // There was an error with the resolution intent. Try again.
             mGoogleApiClient.Connect();
         }
     }
     else
     {
         Log.Error(Tag, "Connection to Google API client has failed");
         mResolvingError          = false;
         startActivityBtn.Enabled = false;
         sendPhotoBtn.Enabled     = false;
         WearableClass.DataApi.RemoveListener(mGoogleApiClient, this);
         WearableClass.MessageApi.RemoveListener(mGoogleApiClient, this);
         WearableClass.NodeApi.RemoveListener(mGoogleApiClient, this);
     }
 }
コード例 #4
0
        public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
        {
            var h = OnConnectionFailedHandler;

            if (h != null)
            {
                h(result);
            }
        }
コード例 #5
0
        public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
        {
            // Connection failed to Google Play services, set our result false
            tcsConnected.TrySetResult(false);

            // There's no way to recover at this point, so let the user know, and exit
            Toast.MakeText(this, "Failed to connect to Google Play Services", ToastLength.Long).Show();
            Finish();
        }
コード例 #6
0
        public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
        {
            if (mResolvingError)
            {
                return;
            }

            mPersonListView.Adapter = null;

            try {
                result.StartResolutionForResult(this, REQUEST_CODE_SIGN_IN);
                mResolvingError = true;
            } catch (IntentSender.SendIntentException ex) {
                // Get another pending intent to run.
                mGoogleApiClient.Connect();
            }
        }
コード例 #7
0
 /// <summary>
 /// Notifies user that connection was failed, although it tries connecting up to 10 times(defined variable up top)
 /// </summary>
 /// <param name="result"></param>
 public async void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     HeartDebugHandler.debugLog("Connection failed");
     connectionAttempts++;
     if (connectionAttempts < maxConnectionAttempts)
     {
         if (!mGoogleApiClient.IsConnected && !mGoogleApiClient.IsConnecting)
         {
             mGoogleApiClient.Connect();
             //updateConnectionStatusString("Connecting");
             connectionStatusHandler.updateStatus("Connecting");
         }
     }
     else
     {
         //updateConnectionStatusString("Connection failed");
         connectionStatusHandler.updateStatus("Connection failed");
     }
 }
コード例 #8
0
 public override void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     base.OnConnectionFailed(result);
 }
コード例 #9
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult p0)
 {
 }
コード例 #10
0
 // IOnConnectionFailedListener
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     locationTextView.Text = "Connection failed";
 }
コード例 #11
0
ファイル: MainActivity.cs プロジェクト: empowerhack/Beacon
 private void OnFailed(Android.Gms.Common.ConnectionResult result)
 {
     Toast.MakeText(this, "Failed to connect to google places API", ToastLength.Long).Show();
 }
コード例 #12
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     DataLayerListenerService.LOGD(Tag, "OnConnectionFailed(): Failed to connect, with result: " + result);
 }
コード例 #13
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     DebugLog("onConnectionFailed: " + result);
     UpdateViewVisibility(NearbyConnectionState.Idle);
 }
コード例 #14
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     Log.Error(Tag, "Failed to connect to the Google API client");
 }
コード例 #15
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     Log.Error(TAG, "Connection to Google API client has failed");
 }
コード例 #16
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     // Do nothing
 }
コード例 #17
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult p0)
 {
     Log.Error(Constants.TAG, "CalendarQueryService client connection failed.");
 }
コード例 #18
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     Console.WriteLine("connection failed: " + result);
 }
コード例 #19
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     Toast.MakeText(this, "Failed to Connect to Google Services", ToastLength.Long).Show();
 }
コード例 #20
0
 public virtual void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     Connect();
 }
コード例 #21
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     Android.Util.Log.Error("GMS", "Connection failed " + result.ErrorCode);
 }
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     Console.WriteLine("GooglePlayServices Connection Failed: {0}", result);
 }
コード例 #23
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     Log.Info(TAG, "Connection failed: ConnectionResult.ErrorCode = " + result.ErrorCode);
 }
コード例 #24
0
 public void OnConnectionFailed(Android.Gms.Common.ConnectionResult result)
 {
     Console.WriteLine("Google API: Connection Failed");
 }