protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(contentView = new MainView(this)); IntentFilter filter = new IntentFilter(); filter.AddAction(BluetoothDevice.ActionAclConnected); filter.AddAction(BluetoothDevice.ActionAclDisconnectRequested); filter.AddAction(BluetoothDevice.ActionAclDisconnected); RegisterReceiver(new BtReceiver(), filter); contentView.Map.OnCreate(savedInstanceState); Timer t = new Timer(delegate { BtReceiver.StartRead(); }, null, 5000, int.MaxValue); }
void OnButtonClick(object sender, EventArgs e) { BtReceiver.StartRead(); }