Android implementaion of the MarketplaceReviewTask.
Ejemplo n.º 1
0
 static void yesButton_Click(object sender, RoutedEventArgs e)
 {
     var review = new MarketplaceReviewTask();
     review.Show();
     messagePrompt.Hide();
     DidReview();
 }
Ejemplo n.º 2
0
        public static void StartReviewTask()
        {
            try
            {
                SessionLog.RecordMilestone("Rate and Review", AppStats.Current.SessionId.ToString());
                UserSettings.Current.SuppressAskForReviewCount += 1; //SuppressAskForReview = true;
#if WINDOWS_PHONE
                Microsoft.Phone.Tasks.MarketplaceReviewTask detailTask = new Microsoft.Phone.Tasks.MarketplaceReviewTask();
                detailTask.Show();
#else
                Android.Net.Uri uri        = Android.Net.Uri.Parse("market://details?id=" + navigationContext.ApplicationContext.PackageName);
                Intent          goToMarket = new Intent(Intent.ActionView, uri);
                //goToMarket.AddFlags(ActivityFlags.NewTask);
                try
                {
                    navigationContext.StartActivity(goToMarket);
                }
                catch (ActivityNotFoundException)
                {
                    navigationContext.StartActivity(new Intent(Intent.ActionView, Android.Net.Uri.Parse("http://play.google.com/store/apps/details?id=" + navigationContext.ApplicationContext.PackageName)));
                }
#endif
            }
            catch (Exception ex)
            {
                LittleWatson.ReportException(ex);
            }
            Navigate.BackFromFeedback();
        }
Ejemplo n.º 3
0
        void appBarButtonReview_Click(object sender, EventArgs e)
        {
            MarketplaceReviewTask task = new MarketplaceReviewTask();
            task.Show();

            GenerateRandomCard();
        }
Ejemplo n.º 4
0
        public Feedback()
        {
            InitializeComponent();

            // Initialize the SaveRingtoneTask and assign the Completed handler in the page constructor.
            ReviewTask = new MarketplaceReviewTask();
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Prompt the user for review
        /// </summary>
        public static void PromptUser()
        {
            Popup popup = new Popup();
            popup.VerticalOffset = App.Current.Host.Content.ActualHeight / 3;
            ReviewPopupControl review = new ReviewPopupControl();
            popup.Child = review;
            popup.IsOpen = true;

            review.btnOk.Click += (s, args) =>
                {
                    MarketplaceReviewTask task = new MarketplaceReviewTask();
                    task.Show();

                    popup.IsOpen = false;
                    DidReview();
                };

            review.btnNo.Click += (s, args) =>
                {
                    numOfRuns = -1;
                    popup.IsOpen = false;
                };

            review.btnNever.Click += (s, args) =>
                {
                    DidReview();
                    popup.IsOpen = false;
                };
        }
Ejemplo n.º 6
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            //  NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));

            if (askforReview)
            {
                //make sure we only ask once! 
                var returnvalue = MessageBox.Show("Please tell us how is the app as your reveiws matter alot to us.\nPlease  Rate 5 Stars", "Please  Rate 5 Stars", MessageBoxButton.OK);
                if (returnvalue == MessageBoxResult.OK)
                {
                    IsolatedStorageSettings.ApplicationSettings["done"] = true;
                    askforReview = false;



                    var marketplaceReviewTask = new MarketplaceReviewTask();
                    marketplaceReviewTask.Show();
                }

                NavigationService.GoBack();

                }

                 else
                NavigationService.GoBack();

            }
        private void Evaluar() 
        {
            IsolatedStorageSettings configuracion = IsolatedStorageSettings.ApplicationSettings;
            IsolatedStorageSettings primeraVez = IsolatedStorageSettings.ApplicationSettings;


            if (!(bool)configuracion.Contains("evaluado") )
            {
                if ((bool)primeraVez.Contains("yes"))
                {
                    MessageBoxResult resultado = MessageBox.Show("¿Deseas evaluar esta aplicación?", "Evaluación", MessageBoxButton.OKCancel);

                    if (resultado == MessageBoxResult.OK)
                    {
                        MarketplaceReviewTask evaluacionApp = new MarketplaceReviewTask();
                        evaluacionApp.Show();
                        configuracion.Add("evaluado", true);

                    }
                }

                else
                {
                    primeraVez.Add("yes", false);

                }

            }

          

            
        }
Ejemplo n.º 8
0
        public Task<bool> ReviewApplicationOnTheStore()
        {
            var marketplaceReviewTask = new MarketplaceReviewTask();

            marketplaceReviewTask.Show();

            return Task.FromResult(true);
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Rate and review the app
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ApplicationBarRateButton_Click(object sender, EventArgs e)
        {
            MarketplaceReviewTask task = new MarketplaceReviewTask();
            task.Show();

            // Dont prompt the user again
            ReviewBugger.DidReview();
        }
Ejemplo n.º 10
0
 public void RateApp()
 {
     config.AppRated = true;
     config.TimeUnrated = TimeSpan.Zero;
     App.CurrentApp.LogAnalyticEvent("RateApp");
     var marketplaceReviewTask = new MarketplaceReviewTask();
     marketplaceReviewTask.Show();
 }
Ejemplo n.º 11
0
        private void RateButton_Clicked(object sender, System.Windows.RoutedEventArgs e)
        {
            var mrt = new MarketplaceReviewTask();
            try {
                mrt.Show();
            } catch (Exception) {

            }
        }
Ejemplo n.º 12
0
 public void ShowAfterThreshold()
 {
     if (NumberOfStarts == numberOfStartsThreshold &&
         GetMessageBoxResult() == MessageBoxResult.OK)
     {
         MarketplaceReviewTask task = new MarketplaceReviewTask();
         task.Show();
     }
 }
Ejemplo n.º 13
0
 private void btn_about_Click(object sender, RoutedEventArgs e)
 {
     MessageBoxResult result = MessageBox.Show("     This Application calculates 300.000th digit of the pi number and saves time data to display the performance change of CPU  \n     Copyright (C) 2014 Kaan Barış BAYRAK  E-Mail: [email protected] \n     Special Thanks to Naz Levent for helping me to build the visual design \n     You can rate this app to help developer(ME) by just clicking OK button",
             "Super Pi Performance Tester", MessageBoxButton.OKCancel);
     if (result == MessageBoxResult.OK)
     {
         MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
         marketplaceReviewTask.Show();
     }
 }
Ejemplo n.º 14
0
 private void Mark_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     try
     {
         MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
         marketplaceReviewTask.Show();
     }
     catch (System.Exception ex)
     {
     }
 }
Ejemplo n.º 15
0
		public void OpenStoreForReview(MarketingDesc desc)
		{
			#if WINDOWS_PHONE
			var task = new MarketplaceReviewTask();
			task.Show();
			#elif UNITY_WP_8_1
			async_OpenStoreForReview(desc.WP8_AppID);
			#else
			async_OpenStoreForReview(desc.Win8_PackageFamilyName);
			#endif
		}
Ejemplo n.º 16
0
 public void ratemyapp()
 {
     try
     {
         var rateTask = new MarketplaceReviewTask();
         rateTask.Show();
     }
     catch
     {
     }
 }
Ejemplo n.º 17
0
 private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
 {
     var s = ((ButtonBase)sender).Tag as string;
     switch (s)
     {
         case "Review":
             var task = new MarketplaceReviewTask();
             task.Show();
             break;
     }
 }
Ejemplo n.º 18
0
 private void RateReviewText_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     try
     {
         MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
         marketplaceReviewTask.Show();
     }
     catch
     {
         MessageBox.Show("Marketplace cannot be reached and app cannot be found. Please try to review later - Thank you!");
     }
 }
 private void ReviewButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
         marketplaceReviewTask.Show();
     }
     catch (InvalidOperationException ex)
     {
         // user probably double-clicked the button before navigation occurred - do nothing
     }
 }
Ejemplo n.º 20
0
 private void rateButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         MarketplaceReviewTask task = new MarketplaceReviewTask();
         task.Show();
     }
     catch
     {
         // prevent exceptions from double-click
     }
 }
Ejemplo n.º 21
0
 private void btnRateAndReview_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
         marketplaceReviewTask.Show();
     }
     catch
     {
         MessageBox.Show("Could not open marketplace on phone...");
     }
 }
        private void MarketplaceReviewButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();

                marketplaceReviewTask.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK);
            }
        }
Ejemplo n.º 23
0
 public void ShowAfterThreshold(int starts)
 {
     if ((starts == numberOfStartsThreshold || starts == numberOfStartsThreshold2) &&
         GetMessageBoxResult() == MessageBoxResult.OK)
     {
         try
         {
             var task = new MarketplaceReviewTask();
             task.Show();
         }
         catch
         {
         }
     }
 }
Ejemplo n.º 24
0
        public AboutViewViewModel()
        {
            RateAndReviewCommand = new DelegateCommand(_ =>
                {
                    var task = new MarketplaceReviewTask();
                    task.Show();
                });

            SendFeedbackCommand = new DelegateCommand(_ =>
                {
                    var task = new EmailComposeTask
                        {
                            To = "*****@*****.**",
                            Subject = "Imagenary feedback."
                        };
                    task.Show();
                });

            MoreAppsCommand = new DelegateCommand(_ =>
                {
                    var task = new MarketplaceSearchTask
                        {
                            SearchTerms = "iBrainGamer"
                        };
                    task.Show();
                });

            TwitterCommand = new DelegateCommand(_ =>
                {
                    var task = new WebBrowserTask
                        {
                            Uri = new Uri("http://twitter.com/AlexandrYZ")
                        };
                    task.Show();
                });

            OpenSiteCommand = new DelegateCommand(_ =>
                {
                    var task = new WebBrowserTask
                        {
                            Uri = new Uri("http://aomega.co")
                        };
                    task.Show();
                });
            
            Version = "v" + GetVersion();
        }
Ejemplo n.º 25
0
 private void PurchaseButton_Click(object sender, RoutedEventArgs e)
 {
     // pop up the link to rate and review the app
     if (App.IsTrial)
     {
         MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
         marketplaceDetailTask.ContentIdentifier = "da41187b-c86f-44bb-820b-b4b8aee4cd25";
         marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
         marketplaceDetailTask.Show();
     }
     else
     {
         // Let people review.
         MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
         marketplaceReviewTask.Show();
     }
 }
Ejemplo n.º 26
0
        private void Button_clicked(object sender, RoutedEventArgs e)
        {
            Button current_button = (Button)sender;
            String button_name = current_button.Name;
            switch (button_name)
            {
                case "phone":
                    phoneNumberChooserTask = new PhoneNumberChooserTask();
                    phoneNumberChooserTask.Completed += new EventHandler<PhoneNumberResult>(phoneNumberChooserTask_Completed);
                    try
                    {
                        phoneNumberChooserTask.Show();
                    }
                    catch (System.InvalidOperationException ex)
                    {
                        MessageBox.Show("An error occurred.");
                    }
                    //PhoneCallTask phoneCallTask = new PhoneCallTask();

                    //phoneCallTask.PhoneNumber = "123456789";
                    //phoneCallTask.DisplayName = "Shadowfax Apps";

                    //phoneCallTask.Show();
                    break;
                case "feedback":
                    EmailComposeTask emailComposeTask = new EmailComposeTask();
                    emailComposeTask.Subject = "iPhone Skip App feedback";
                    emailComposeTask.Body = "";
                    emailComposeTask.To = "*****@*****.**";
                    emailComposeTask.Show();
                    break;
                case "website":
                    WebBrowserTask webBrowserTask4 = new WebBrowserTask();
                    webBrowserTask4.Uri = new Uri("http://shadowfax-apps.blogspot.in/", UriKind.Absolute);
                    webBrowserTask4.Show();
                    break;
                case "rate":
                    MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
                    marketplaceReviewTask.Show();

                    break;

                default:
                    break;
            }
        }
Ejemplo n.º 27
0
 private void PurchaseButton_Click(object sender, RoutedEventArgs e)
 {
     // pop up the link to rate and review the app
     if (App.IsTrial)
     {
         MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
         marketplaceDetailTask.ContentIdentifier = "5d5cebe9-420a-4566-a468-04c94aa34d93";
         marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
         marketplaceDetailTask.Show();
     }
     else
     {
         // Let people review.
         MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
         marketplaceReviewTask.Show();
     }
 }
        private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            if (buildScreen)
            {
                BuildScreen();
            }

            if (settings.AppStartCounterSetting == 10)
            {
                MessageBoxResult result = MessageBox.Show("Thank you for using 7Timer Astro Weather for a while, would you like to review this app? If you have any feedback please send me an email (see About page) if you post it in your review I won't beable to reply to it.", "Please review this app", MessageBoxButton.OKCancel);
                if (result == MessageBoxResult.OK)
                {
                    MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
                    marketplaceReviewTask.Show();
                }
                settings.AppStartCounterSetting++;
            }
        }
        public Welcome()
        {
            InitializeComponent();
            IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
            prgBar.IsIndeterminate = true;

            try
            {
                int launchCount = (int)IsolatedStorageSettings.ApplicationSettings["LaunchCount"];
                bool newRelease = (bool)IsolatedStorageSettings.ApplicationSettings["NewRelease"];
                if (newRelease)
                {
                    MessageBox.Show(AppResources.NewReleaseMsg, "Change logs", MessageBoxButton.OK);
                    IsolatedStorageSettings.ApplicationSettings["NewRelease"] = false;
                    IsolatedStorageSettings.ApplicationSettings["ReleaseCount"] = AppResources._ReleaseCount;
                    IsolatedStorageSettings.ApplicationSettings.Save();
                }
                
                if (launchCount % 3 == 0 && launchCount > 0 && !(bool)settings["Voted"] &&
                    MessageBox.Show(AppResources.RateMsg, "Rate & Review", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
                {

                    MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
                    marketplaceReviewTask.Show();
                    settings["Voted"] = true;
                }

                var _appSettings = (AppSettings)IsolatedStorageSettings.ApplicationSettings["AppSettings"];
                if (!_appSettings._EnableLocationAccess)
                    if (MessageBox.Show(AppResources.AllowLocationMsg, AppResources.Attention, MessageBoxButton.OKCancel) == MessageBoxResult.OK)
                        _appSettings._EnableLocationAccess = true;
                
                IsolatedStorageSettings.ApplicationSettings["LaunchCount"] = launchCount + 1;
                IsolatedStorageSettings.ApplicationSettings.Save();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }



        }
Ejemplo n.º 30
0
 /// <summary>
 /// React to user feedback buttons
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Button btn = sender as Button;
     switch (btn.Content.ToString())
     {
         case "Rate and Review":
             MarketplaceReviewTask mrt = new MarketplaceReviewTask();
             mrt.Show();
             break;
         case "Suggest Changes":
             EmailComposeTask ect = new EmailComposeTask();
             ect.To = "*****@*****.**";
             ect.Subject = String.Format("Bus Alarm");
             ect.Show();
             break;
         default:
             break;
     }
 }
Ejemplo n.º 31
0
        public void ApplicationRate()
        {
            int gameStarted;
            IsolatedStorageSettings.ApplicationSettings.TryGetValue("game_started", out gameStarted);
            gameStarted++;
            IsolatedStorageSettings.ApplicationSettings["game_started"] = gameStarted;
            IsolatedStorageSettings.ApplicationSettings.Save();

            bool gameRated;
            IsolatedStorageSettings.ApplicationSettings.TryGetValue("game_rated", out gameRated);
            if (!gameRated && gameStarted % 4 == 0)
            {
                MessageBoxResult m = MessageBox.Show("Would you like to rate this app now?", "Enjoying the App?", MessageBoxButton.OKCancel);
                if (m == MessageBoxResult.OK)
                {
                    IsolatedStorageSettings.ApplicationSettings["game_rated"] = true;
                    IsolatedStorageSettings.ApplicationSettings.Save();
                    MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
                    marketplaceReviewTask.Show();
                }
            }
        }