protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); SetContentView(Resource.Layout.activity_main); BtnVoice1 = FindViewById <Button>(Resource.Id.btnVoice1); BtnVoice2 = FindViewById <Button>(Resource.Id.btnVoice2); BtnStopVoice = FindViewById <Button>(Resource.Id.btnStopVoice); BtnVoice1.Click += BtnVoice1_Click; BtnVoice2.Click += BtnVoice2_Click; BtnStopVoice.Click += BtnStopVoice_Click; songPlayer = new SongPlayer("01", this); accelerometerReader.ToggleAccelerometer(); songPlayer.ControlPlayer("01"); /* timer = new Timer(); * timer.startTimer(10000);*/ }