Пример #1
0
        protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
        {
            base.OnActivityResult(requestCode, resultCode, data);
            if (_iInAppPurchase != null)
            {
                _iInAppPurchase.OnActivityResult(requestCode, resultCode, data);
            }

            System.Diagnostics.Debug.WriteLine("ActivityResult");
            switch (requestCode)
            {
            case GoogleDriveInteractor.RESULT_CODE:     // Something may have been resolved, try connecting again
                if (resultCode == Result.Ok)
                {
                    _driveManager.GoogleDriveAction();
                }
                break;

            case REQUESTCODE_PICK_TEXT:
                if (resultCode == Result.Ok)
                {
                    string           uri   = data.DataString;
                    Android.Net.Uri  uris  = Android.Net.Uri.FromParts(data.Data.Scheme, data.Data.SchemeSpecificPart, data.Data.Fragment);
                    System.IO.Stream input = ContentResolver.OpenInputStream(data.Data);
                    _driveManager.ReadDriveFile(input);
                }
                break;
            }
        }
Пример #2
0
 protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
 {
     base.OnActivityResult(requestCode, resultCode, data);
     if (_iInAppPurchase != null)
     {
         _iInAppPurchase.OnActivityResult(requestCode, resultCode, data);
     }
 }