Solved

NFC Example for Static Tags in VB.net on Windows Phone 8

Posted on 2013-11-12
3
787 Views
Last Modified: 2014-11-12
As the title says, I'm looking for a NFC example for static tags in VB.net.

I've tried using the vb.net code from

http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.proximity.proximitydevice.subscribeformessage(v=win.10).aspx

But the SubscribeForMessage event handler never fires ?

Would be great if someone could post some code that works and has been tested with a real world windows phone.
0
Comment
Question by:Dodsworth
3 Comments
 
LVL 1

Accepted Solution

by:
Dodsworth earned 0 total points
ID: 39829801
Error in the example I think.  MessageRecieved needs to be on the UI thread.

 Public Sub MessageReceived(sender As ProximityDevice, message As ProximityMessage)
        Deployment.Current.Dispatcher.BeginInvoke(Sub()
                                                      txtRead.Text = message.DataAsString.Replace(vbNullChar, "")
                                                  End Sub)
    End Sub

Open in new window

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now