Solved

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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…

740 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