Solved

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

Posted on 2013-11-12
3
814 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

710 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