protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     SetContentView(Resource.Layout.activity_activityconversion);
     identificationService = ActivityIdentification.GetService(this);
     lstHistory            = FindViewById <ListView>(Resource.Id.lstHistory);
     act = this;
     RequestActivityConversion();
 }
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     Xamarin.Essentials.Platform.Init(this, savedInstanceState);
     SetContentView(Resource.Layout.activity_main);
     activityIdentificationService = ActivityIdentification.GetService(this);
     txtActivityType       = FindViewById <TextView>(Resource.Id.txtActivityType);
     imgActivityType       = FindViewById <ImageView>(Resource.Id.imgActivityType);
     lstDetectedActivities = FindViewById <ListView>(Resource.Id.lstDetectedActivities);
     act = this;
     FindViewById <Button>(Resource.Id.btnConversion).Click += btnConversion_Click;
     RequestPermissions();
 }
 private void InitializeFields()
 {
     activityIdentificationService = ActivityIdentification.GetService(this);
 }