We are going to add a Pivot Control to the MainPage.xaml so that there's two pages (PivotItems): one for the treasure list, and one for the map. Now we are going to modify the template's XAML so it has the basis of our UI. Your Assets-folder should now look like this: The downloaded resources folders to corresponding folders in Visual Studio. Right click on the each of the new folders and use the Add -> Existing Item. In Visual Studio Solution Explorer, create two folders under the Assets-folder, named "Treasures" and "Sounds". When Visual Studio prompts you to select an OS version to support, select Windows Phone 8.0. Studio Project, Adding Project Assets and Modifying the XAMLįirst up, let's create a new Visual Studio project from the basic Windows Phone App -template. In the end of the example, the application is going to look like this: You can of course test the other functionalities on the emulator if you disable or Please note that to test the NFC functionalities of the application, you must have a WP8 device since the emulator doesn't support NFC testing, and also a writeable NFC tag. Map coordinates for the treasures from an online URL and show these coordinates as marks on a separate map page. To showcase these features in practice, we are going to be making an example application that uses NFC to read different keywords from NFC tags and adds a treasure entry to a treasure list corresponding to different keywords. Windows Phone 8 also uses Nokia Maps as the primary map service instead of the old Bing Maps, and developers can now implement Nokia Maps to their applications with the new map API. Small amounts of data, such as pieces of text or contact card information can be sent. One of these features is the Near Field Communication (NFC) which allows the device user to read/send data to/from an NFC tag, sticker or deviceīy placing the device 3-4 centimeters from the other tag or device. Windows Phone 8 comes with several new and handy features for both application developers and the devices' users. This article describes how to create a WP8-application in which the user hunts NFC tags as treasures using a Nokia Maps -map element as help.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |