public void Connect_Click() { if (Bluetooth.IsConnected) { view.MakeDialog(Constants.CONN_REQUEST); } else { NavToDeviceList(); } }
public void onActivityResult(int requestCode, Result resultCode, Intent data) { if (requestCode == Constants.ENABLE_BLUETOOTH) { if (resultCode == Result.Canceled) { view.MakeDialog(Constants.TMP); } else if (resultCode == Result.Ok) { StartDiscoveryProcess(); } } if (requestCode == Constants.CONN_OK) { if (resultCode == Result.Ok) { //view.MakeToast(data.GetStringExtra("msg"), ToastLength.Long); view.FinishView(Result.Ok, new Intent()); } } }