문제

I'm currently using 32Phone.NET.Phone.Bluetooth in my project, and I've discovered a small error that I feel is out of my hands. Simply put, when I call this:

BluetoothDevicePicker btPicker = new BluetoothDevicePicker(); 
PeerInformation peerInfo = await btPicker.PickDeviceAsync();
deviceName = peerInfo.HostName;

Which pulls up a list of paired devices, however if I press the back button instead of selecting a device it crashes my app. Was wondering if there was a workaround for this? I have posted on the 32feet site, but it looks so inactivate.

도움이 되었습니까?

해결책

Hmm, well, in the worst case, you could pick up the source code from the above project and debug this for yourself (and learn the cost of depending on an inactive project)...

You don't describe the crash, but if it is a managed exception, you could put a try {} catch {} block around this chunk of code.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top