나는 이것을 밤새 보냈다. 나는 이것을 작동 시키려고 노력했다. 필자의 Windows Phone에서 감지 한 물리적 태그가 있지만 SubscribeForMessage는 절대로 실행되지 않습니다.물리적 인 NFC 태그 읽기 - Windows Phone 8
내 Android 기기를 사용하여 문제없이 태그를 성공적으로 읽고 쓸 수 있습니다. 그런 다음 나는 물리적 하나에 태그를 복사 한
Windows.Networking.Proximity.ProximityDevice proximityDevice;
long publishedMessageId = -1;
long subscribedMessageId = -1;
private void Button_Click_1(object sender, RoutedEventArgs e)
{
proximityDevice = Windows.Networking.Proximity.ProximityDevice.GetDefault();
if (proximityDevice != null)
{
publishedMessageId = proximityDevice.PublishMessage("Windows.Tietgen", "tietgen");
}
}
, 앱은 여전히 거기에 반응하지 않는 : 난 다음 코드를 사용하여 메시지를 보내 내 휴대 전화에 대한 응용 프로그램을 만드는 시도했습니다 전화가 태그를 잘 감지하고 있지만 ...이 시점에서 나는 정말로 좌절하고 있습니다.
이 내 응용 프로그램의 코드 :
if (ProximityDevice.GetDefault() != null)
{
ProximityDevice device = ProximityDevice.GetDefault();
subscribedMessageId = device.SubscribeForMessage("Windows.Tietgen", messagedReceived);
}
private void messagedReceived(ProximityDevice device, ProximityMessage m)
{
MessageBox.Show("test");
}
내가 무엇을해야합니까, 태그를 인식 할 수 내 전화를 얻는 방법?