Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Android.App;
- using Android.Content.PM;
- using Android.OS;
- using Android.Widget;
- using Exception = System.Exception;
- namespace SensorRecorder {
- [Activity(Label = "SensorRecorder", MainLauncher = true, Icon = "@drawable/icon",
- ScreenOrientation = ScreenOrientation.Portrait)]
- public class Activity1 : Activity {
- private Button m_startStopButton;
- protected override void OnCreate(Bundle bundle) {
- base.OnCreate(bundle);
- SetContentView(Resource.Layout.Main);
- this.m_startStopButton = FindViewById<Button>(Resource.Id.StartStopButton);
- this.m_startStopButton.Click += OnStartStopButton;
- }
- private void OnStartStopButton(object sender, EventArgs e) {
- throw new Exception("Just a test");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement