Example #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            GoogleAnalyticsManager.ReportScreenEnter(this.GetType().FullName);

            SetContentView(Resource.Layout.AboutScreen);

            SupportActionBar.SetDisplayHomeAsUpEnabled(true);

            var packageInfo = PackageManager.GetPackageInfo(PackageName, 0);

            if (packageInfo != null)
            {
                var versionTextView = FindViewById <TextView>(Resource.Id.version);
                versionTextView.Text = string.Format(Resources.GetString(Resource.String.settings_version), packageInfo.VersionName, packageInfo.VersionCode);
            }

            var rateTextView = FindViewById <TextView>(Resource.Id.rate);

            rateTextView.PaintFlags = PaintFlags.UnderlineText;
            rateTextView.Click     += RateTextViewClick;

            var feedbackTextView = FindViewById <TextView>(Resource.Id.send_feedback);

            feedbackTextView.PaintFlags = PaintFlags.UnderlineText;
            feedbackTextView.Click     += FeedbackTextViewClick;
        }
Example #2
0
        protected override void OnCreate(Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            GoogleAnalyticsManager.ReportScreenEnter(this.GetType().FullName);

            CountForStarts();

            if (_billingManager == null)
            {
                _billingManager                  = new InAppBillingManager(this);
                _billingManager.Connected       += HandleConnected;
                _billingManager.HasPaiedChanged += HandleHasPaiedChanged;
            }
        }
Example #3
0
        protected override void OnCreate(Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            GoogleAnalyticsManager.ReportScreenEnter(GetType().FullName);

            AddPreferencesFromResource(Resource.Xml.preferences);

            _soundPref = FindPreference(SoundSettingKey);
            var soundPrefValue = PreferenceManager.GetDefaultSharedPreferences(this).GetString(SoundSettingKey, "");

            _soundPref.Summary = string.IsNullOrEmpty(soundPrefValue) ? GetString(Resource.String.settings_sound_sum) :
                                 RingtoneManager.GetRingtone(this, Android.Net.Uri.Parse(soundPrefValue)).GetTitle(this);
            _soundPref.PreferenceClick += SoundPreferenceClick;

            _adsPref = FindPreference(AdsSettingKey);
            _adsPref.PreferenceClick += AdsPreferenceClick;
        }