protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); // ToDo: create BluetoothAdapter and connect to spider List <ImageButton> directionalPad = new List <ImageButton> { FindViewById <ImageButton>(Resource.Id.button_forward), FindViewById <ImageButton>(Resource.Id.button_backward), FindViewById <ImageButton>(Resource.Id.button_left), FindViewById <ImageButton>(Resource.Id.button_right) }; // Add custom touch listener to register when button is held down ButtonListener buttonListener = new ButtonListener(); // ToDo: set buttonListener's btAdapter foreach (var button in directionalPad) { button.SetOnTouchListener(buttonListener); } }