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.
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
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:
NFCTalk.sln
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
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:
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。