O'Reilly logo

Professional Windows 8 Programming: Application Development with C# and XAML by Kevin Ashley, Allen Sanders, Doug Holland, Nick Lecrenski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required