Book Image

Learning Firefox OS Application Development

By : Tanay Pant
Book Image

Learning Firefox OS Application Development

By: Tanay Pant

Overview of this book

With broad compatibility, the latest in web technologies, and powerful development tools, Firefox is a great choice for both web developers and end users. Firefox OS’s promotion of HTML5 as a first class citizen opens up the walled gardens of mobile application development for web developers. It is because of this initiative that no special SDKs are required to develop for Firefox OS. This book will help you excel in the art of developing applications for Firefox OS. It sequentially covers knowledge building, skills acquisition, and practical applications. Starting with an introduction to Firefox OS, usage of WebIDE, and then the application structure, this book introduces applications of increasing complexity with each chapter. An application that measures your tapping speed, a geolocation tagging application, and a photo editing and sharing application are the three applications that will be built from scratch. You will learn about topics such as the difference between various types of Firefox OS applications, application manifest files, offline apps, and designing principles for applications. You will also learn to test and submit the applications to the marketplace and finally maintain the repository of the Firefox OS application. By the end, you will be able to develop beautifully designed, fully-fledged, and rigorously tested Firefox OS applications and also share them at the Firefox OS Marketplace.
Table of Contents (17 chapters)
Learning Firefox OS Application Development
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Running our application on the simulator


Since we have finished building our first Firefox OS application, it's now time to run it and play with it. Follow the instructions that you studied earlier to open an application in the Firefox OS Simulator via WebIDE. After firing up WebIDE, open the application as a packaged application. You will see a window as shown in the following screenshot:

Note

The entire code of this application is located at GitHub under tanay1337/Clickr. You can also download the entire source code of the application as a ZIP file from:

https://github.com/tanay1337/Clickr/archive/master.zip.

You will notice that WebIDE has taken the details of our application and icon from the manifest file. Let's click on the Install and Run button (shaped like the play icon of your music player) to play with our application. Also, since our application type is Web (that is, we are not making use of any Privileged or Certified APIs) the description of our application is PACKAGED WEB. Had...