Solved

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

Posted on 2013-11-12
3
825 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

626 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