public void GetGoogleLicense()
        {
            String txt;
            var    lblAboutMaps = FindViewById <TextView>(Resource.Id.lblMaps);

            try
            {
                if (GooglePlayServicesUtil.IsGooglePlayServicesAvailable(this) == ConnectionResult.Success)
                {
                    txt = GooglePlayServicesUtil.GetOpenSourceSoftwareLicenseInfo(this);
                    if (txt != null)
                    {
                        RunOnUiThread(() => lblAboutMaps.Text = txt);
                    }
                    else
                    {
                        RunOnUiThread(() => lblAboutMaps.Text = "");
                    }
                }
            }
            catch (Exception ex)
            {
                RunOnUiThread(() => lblAboutMaps.Text = ex.Message);
            }
        }
Beispiel #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.legal);

            TextView legal = FindViewById <TextView>(Resource.Id.legal);

            legal.Text = GooglePlayServicesUtil.GetOpenSourceSoftwareLicenseInfo(this);
        }
Beispiel #3
0
        protected override void OnCreate(Android.Os.Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            ScrollView scroll  = new ScrollView(this);
            TextView   license = new TextView(this);

            license.SetText(GooglePlayServicesUtil.GetOpenSourceSoftwareLicenseInfo(this));
            scroll.AddView(license);
            SetContentView(scroll);
        }
Beispiel #4
0
        protected override void OnCreate(Bundle savedState)
        {
            base.OnCreate(savedState);

            var scroll = new ScrollView(this);

            var license = new TextView(this);

            license.Text = GooglePlayServicesUtil.GetOpenSourceSoftwareLicenseInfo(this);
            scroll.AddView(license);

            SetContentView(scroll);

            if (Build.VERSION.SdkInt >= BuildVersionCodes.Honeycomb)
            {
                ActionBar.SetDisplayHomeAsUpEnabled(true);
            }
        }
Beispiel #5
0
        protected override void OnCreate(Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.legal_info);

            var    legalInfoTextView             = FindViewById <TextView> (Resource.Id.legal_info);
            string openSourceSoftwareLicenseInfo =
                GooglePlayServicesUtil.GetOpenSourceSoftwareLicenseInfo(this);

            if (openSourceSoftwareLicenseInfo != null)
            {
                legalInfoTextView.Text = openSourceSoftwareLicenseInfo;
            }
            else
            {
                legalInfoTextView.SetText(Resource.String.play_services_not_installed);
            }
        }