Simple chat application demonstrating NFC tap and Bluetooth search initiated connection establishment and further data transfer.
Перейти к файлу
Tomi Paananen 9877355a4e Update README.md 2014-11-28 15:27:51 +02:00
NFCTalk Batch update 2014-11-27 13:33:01 +02:00
Screenshots Add about page screenshot 2012-10-02 13:59:57 +03:00
doc Added screenshots. Updated the README.md and the license file. 2013-10-21 14:04:55 +03:00
Licence.txt Updated copyright and license information. 2014-04-25 13:56:00 +03:00
NFCTalk.sln Initial commit 2012-08-24 15:19:56 +03:00
README.md Update README.md 2014-11-28 15:27:51 +02:00

README.md

NFC Talk

NFC Talk application demonstrates connection initiation by tapping devices together or by searching for nearby devices over Bluetooth, using the Windows Phone 8 Proximity API, the Windows.Networking.Proximity.PeerFinder and related classes.

Screenshot 1  Screenshot 2

The example has been developed with XAML for Windows Phone devices and tested to work on Lumia devices with Windows Phone 8.

This example application is hosted in GitHub: https://github.com/Microsoft/nfc-talk

For more information on implementation and porting, visit Lumia Developer's Library: http://developer.nokia.com/Resources/Library/Lumia/#!code-examples/nfc-talk.html

  1. Instructions

This is a simple build-and-run solution. Learn about Proximity API usage for opening communication channels to application instances on other devices by trying out the application.

To build the application you need to have Windows 8 and Windows Phone SDK 8.0 or later installed.

Using the Windows Phone 8 SDK:

  1. Open the SLN file: File > Open Project, select the file NFCTalk.sln
  2. Select the target 'Device'.
  3. Press F5 to build the project and run it on the device.

Please see the official documentation for deploying and testing applications on Windows Phone devices: http://msdn.microsoft.com/en-us/library/gg588378%28v=vs.92%29.aspx

  1. Implementation

Important files and classes:


File Description


MainPage.xaml(.cs) The main page of the application.

TalkPage.xaml(.cs) The page that is used to chat with peer.

SettingsPage.cs The page that is used to configure chat name.

PeersPage.cs The page that is used to show a list of detected remote peers.

Communication.cs Class that encapsulates the usage of the Proximity API.


Required capabilities:

  • ID_CAP_NETWORKING
  • ID_CAP_PROXIMITY
  1. License

See the license text file delivered with this project. The license file is also available online at https://github.com/Microsoft/nfc-talk/blob/master/Licence.txt

  1. Version history

  • Version 1.1: Peer browsing support (also for NFC-less devices).
  • Version 1.0: The first release.