In this chapter, you will learn about Web APIs, types of Web APIs and how to use them. You will learn to use them with the help of code samples. You will also study web activities, and you will finally implement all of your acquired knowledge to build FoxFoto, a photo editing and sharing application. We will go through the following topics in brief:
Web APIs
Types of Web API and their usage
Web activities
Using Web APIs in FoxFoto
This chapter that will take you through the core Web APIs of Firefox OS, has two major parts. In the first part of this chapter, you will study the various core Web APIs, and learn about their implementation and usage in brief. It will also cover various web activities (mozActivities) that are used for some native operations, such as pick, which is used for picking up images from the gallery and videos from SD cards or internal storage.
In the second part of this chapter, you will learn to use these APIs and Web Activities...