Exemplo n.º 1
0
        protected async override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Main);

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

            yearClass.Text = await Task.Run(() =>
            {
                var year = YearClass.GetDeviceYearClass(ApplicationContext);
                return(year.ToString());
            });
        }