Ejemplo n.º 1
0
        public void ApplicationError(CallbackErrorCode errorCode)
        {
            string message = MSProApp.Locator.StatusVM.GooglePlayNotAvailable;

            AlertDialog.Builder alert = new AlertDialog.Builder(this);
            alert.SetTitle(MSProApp.Locator.StatusVM.WarningLabel);
            alert.SetMessage(message);
            alert.SetCancelable(false);
            alert.SetPositiveButton(MSProApp.Locator.StatusVM.OKLabel, (senderAlert, args) =>
            {
                Finish();
                if (AndroidUtils.TorProc != null)
                {
                    AndroidUtils.TorProc.Destroy();
                }
                if (AndroidUtils.PolipoProc != null)
                {
                    AndroidUtils.PolipoProc.Destroy();
                }
                System.Environment.Exit(0);
            });

            Dialog dialog = alert.Create();

            dialog.Show();
        }
 /// <summary>
 /// The application error.
 /// </summary>
 /// <param name="errorCode">
 /// The error code.
 /// </param>
 public void ApplicationError(CallbackErrorCode errorCode)
 {
     try
     {
         this.Context.downloadNotification.OnDownloadStateChanged(DownloaderState.FailedFetchingUrl);
     }
     finally
     {
         this.Context.IsServiceRunning = false;
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// This is a polite way of saying the developer made a mistake
        /// while setting up or calling the license checker library.
        /// Please examine the error code and fix the error.
        /// </summary>
        /// <param name="errorCode"></param>
        public void ApplicationError(CallbackErrorCode errorCode)
        {
            if (this.IsFinishing)
            {
                // Don't update UI if Activity is finishing.
                return;
            }

            var errorString = this.GetString(Resource.String.application_error);

            this.DisplayResult(string.Format(errorString, errorCode));
        }
 /// <summary>
 /// The application error.
 /// </summary>
 /// <param name="errorCode">
 /// The error code.
 /// </param>
 public void ApplicationError(CallbackErrorCode errorCode)
 {
     try
     {
         this.Context.downloadNotification.OnDownloadStateChanged(DownloaderState.FailedFetchingUrl);
     }
     finally
     {
         this.Context.IsServiceRunning = false;
     }
 }
 /// <summary>
 /// The handle application error.
 /// </summary>
 /// <param name="code">
 /// The code.
 /// </param>
 private void HandleApplicationError(CallbackErrorCode code)
 {
     this.licenseCheckerCallback.ApplicationError(code);
 }
 /// <summary>
 /// This is a polite way of saying the developer made a mistake
 /// while setting up or calling the license checker library.
 /// Please examine the error code and fix the error.
 /// </summary>
 /// <param name="errorCode"></param>
 public void ApplicationError(CallbackErrorCode errorCode)
 {
     if (this.IsFinishing)
     {
         // Don't update UI if Activity is finishing.
         return;
     }
     
     var errorString = this.GetString(Resource.String.application_error);
     this.DisplayResult(string.Format(errorString, errorCode));
 }
Ejemplo n.º 7
0
 public void ApplicationError(CallbackErrorCode errorCode)
 {
     GaService.TrackAppEvent("ApplicationError", errorCode.ToString());
     OnLicenseChecked();
 }
 /// <summary>
 /// The handle application error.
 /// </summary>
 /// <param name="code">
 /// The code.
 /// </param>
 private void HandleApplicationError(CallbackErrorCode code)
 {
     this.licenseCheckerCallback.ApplicationError(code);
 }
Ejemplo n.º 9
0
 public void ApplicationError(CallbackErrorCode errorCode)
 {
     GaService.TrackAppEvent("ApplicationError", errorCode.ToString());
     OnLicenseChecked();
 }