Chapter 6

Handling Data, Files, and Networking

WHAT’S IN THIS CHAPTER?

  • Application data: local, roaming, and temporary
  • File access and permissions
  • Working with data over the network
  • Socket connectivity and WebSockets
  • Proximity and tapping
  • Data serialization and deserialization
  • Data encryption
  • Examples: DataSamples and Leaderboard apps

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

You can find the wrox.com code downloads for this chapter in code file 205709 C06.zip at www.wrox.com/remtitle.cgi?isbn=1118205707 on the Download Code tab. To illustrate handling data, files, and networking, the code for this chapter includes several app examples located in:

  • DataSamplesCS.zip
  • Leaderboard.zip

In addition, NfcSimulatorDriver.zip contains a proximity device driver simulator for the Proximity section in this chapter.

GETTING STARTED WITH DATA, FILES, AND NETWORKING

As devices become more diverse in features, added sensors, storage, and networking capabilities, apps go beyond simply storing data in files. Windows 8 adds a wealth of new APIs, enabling apps to do tasks they couldn’t do before.

In this chapter, you’ll explore new and familiar tasks for handling application data, files, access permissions, and networking. You will learn where you can store your data (depending on various factors) and how to access data in various libraries on the user device, such as music, videos, documents, removable storage, and networks. In order to keep user experience fast and fluid, without locking the user ...

Get Professional Windows 8 Programming: Application Development with C# and XAML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.