In this chapter, we will build a simple Firefox OS application, named Clickr, which is based on HTML5 and jQuery (a JavaScript library). Clickr measures the clicking/tapping speed of a user. A screenshot of this application is shown here:
Let's first discuss the elementary difference between a web app and a Firefox OS application. The major difference lies in the fact that Firefox OS applications include a manifest file that contains the meta details and permission details of the Firefox OS application. These access Web APIs that allow the application to interact with the hardware. The manifest file provides the Firefox OS with the necessary information to install the application. As mentioned earlier, there are primarily two types of Firefox OS applications: packaged and hosted. Let's first understand the difference between these two types of applications and learn the advantages and disadvantages of using them. This will allow us to determine the application...