SlideShare ist ein Scribd-Unternehmen logo
1 von 7
App Development for Firefox OS




HTML 5       CSS 3      JavaScript
Structure of an App

App
  - app.css
  - app.js
  - manifest.webapp
  - images
      - icons and other images
  - index.html
The all important manifest!
Web App manifest contains information that a Web
     browser needs to interact with an app. It is
  a JSON file with a name and description for the
 app, and it can also contain the origin of the app,
  icons, and the permissions required by the app,
                among other things.
Installing an App for testing


Via the Simulator dashboard

Via browser
Code ON!
Code ON!

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (13)

Creating a Facebook App
Creating a Facebook AppCreating a Facebook App
Creating a Facebook App
 
Download PowerPoint Project on social programming for engineering students
Download PowerPoint Project on social programming for engineering studentsDownload PowerPoint Project on social programming for engineering students
Download PowerPoint Project on social programming for engineering students
 
7 best plugins to create custom word press login pages
7 best plugins to create custom word press login pages7 best plugins to create custom word press login pages
7 best plugins to create custom word press login pages
 
Windows phone app studio
Windows phone app studioWindows phone app studio
Windows phone app studio
 
I Am MEC 14 - How to (remote) control office 365 with Azure
I Am MEC 14 - How to (remote) control office 365 with Azure I Am MEC 14 - How to (remote) control office 365 with Azure
I Am MEC 14 - How to (remote) control office 365 with Azure
 
Erikeldridge Yos V9
Erikeldridge Yos V9Erikeldridge Yos V9
Erikeldridge Yos V9
 
Why XgenPlus is better than Zimbra
Why XgenPlus is better than ZimbraWhy XgenPlus is better than Zimbra
Why XgenPlus is better than Zimbra
 
Jquery mobile book review
Jquery mobile book reviewJquery mobile book review
Jquery mobile book review
 
dev portal findings
dev portal findingsdev portal findings
dev portal findings
 
Facebook Connect
Facebook ConnectFacebook Connect
Facebook Connect
 
Developing Facebook Application
Developing Facebook ApplicationDeveloping Facebook Application
Developing Facebook Application
 
DHTMLX_NEW
DHTMLX_NEWDHTMLX_NEW
DHTMLX_NEW
 
DHTMLX
DHTMLXDHTMLX
DHTMLX
 

Andere mochten auch

Антиангинальные и антигипертензивные средства
Антиангинальные и антигипертензивные средстваАнтиангинальные и антигипертензивные средства
Антиангинальные и антигипертензивные средстваcrasgmu
 
Ad-for PowerPoint Presentation
Ad-for PowerPoint PresentationAd-for PowerPoint Presentation
Ad-for PowerPoint PresentationKaykAy GeNise
 
Joomla! Day Chicago 2011 Presentation - Steven Pignataro
Joomla! Day Chicago 2011 Presentation - Steven PignataroJoomla! Day Chicago 2011 Presentation - Steven Pignataro
Joomla! Day Chicago 2011 Presentation - Steven PignataroSteven Pignataro
 
Turism in Madrid
Turism in MadridTurism in Madrid
Turism in MadridTigu Rius
 
Yapi malzemesi ii-6-2-karisim_hesabi - kopya
Yapi malzemesi ii-6-2-karisim_hesabi - kopyaYapi malzemesi ii-6-2-karisim_hesabi - kopya
Yapi malzemesi ii-6-2-karisim_hesabi - kopyadenemeci
 
行政院會簡報資料:農委會 禽流感現況、防疫措施與檢討
行政院會簡報資料:農委會 禽流感現況、防疫措施與檢討行政院會簡報資料:農委會 禽流感現況、防疫措施與檢討
行政院會簡報資料:農委會 禽流感現況、防疫措施與檢討releaseey
 
Diagram ven himpunan matematika diskrit .
Diagram ven himpunan matematika diskrit .Diagram ven himpunan matematika diskrit .
Diagram ven himpunan matematika diskrit .Zuhri Patria Siregar
 
Custom connectorsinmule
Custom connectorsinmuleCustom connectorsinmule
Custom connectorsinmuleAjay Rana
 
O brasil rumo à depressão econômica
O brasil rumo à depressão econômicaO brasil rumo à depressão econômica
O brasil rumo à depressão econômicaFernando Alcoforado
 
Women's day quotes
Women's day quotesWomen's day quotes
Women's day quotesdinesh joshi
 
Version terminada de revista
Version terminada de revistaVersion terminada de revista
Version terminada de revistaMelania Muñoz
 
CÁLCULOS BILIARES y COLECISTITIS AGUDA Y CRÓNICA
CÁLCULOS BILIARES y COLECISTITIS AGUDA Y CRÓNICACÁLCULOS BILIARES y COLECISTITIS AGUDA Y CRÓNICA
CÁLCULOS BILIARES y COLECISTITIS AGUDA Y CRÓNICAValeriaPSH
 
行政院會簡報:僑委會 新南向政策之作法及成果
行政院會簡報:僑委會 新南向政策之作法及成果行政院會簡報:僑委會 新南向政策之作法及成果
行政院會簡報:僑委會 新南向政策之作法及成果releaseey
 
день спасайкина
день спасайкинадень спасайкина
день спасайкинаelvira38
 

Andere mochten auch (20)

Антиангинальные и антигипертензивные средства
Антиангинальные и антигипертензивные средстваАнтиангинальные и антигипертензивные средства
Антиангинальные и антигипертензивные средства
 
Ad-for PowerPoint Presentation
Ad-for PowerPoint PresentationAd-for PowerPoint Presentation
Ad-for PowerPoint Presentation
 
Drive
Drive Drive
Drive
 
Cooll usersguide 4
Cooll usersguide 4Cooll usersguide 4
Cooll usersguide 4
 
Joomla! Day Chicago 2011 Presentation - Steven Pignataro
Joomla! Day Chicago 2011 Presentation - Steven PignataroJoomla! Day Chicago 2011 Presentation - Steven Pignataro
Joomla! Day Chicago 2011 Presentation - Steven Pignataro
 
Turism in Madrid
Turism in MadridTurism in Madrid
Turism in Madrid
 
Yapi malzemesi ii-6-2-karisim_hesabi - kopya
Yapi malzemesi ii-6-2-karisim_hesabi - kopyaYapi malzemesi ii-6-2-karisim_hesabi - kopya
Yapi malzemesi ii-6-2-karisim_hesabi - kopya
 
Presentacion jr
Presentacion jrPresentacion jr
Presentacion jr
 
行政院會簡報資料:農委會 禽流感現況、防疫措施與檢討
行政院會簡報資料:農委會 禽流感現況、防疫措施與檢討行政院會簡報資料:農委會 禽流感現況、防疫措施與檢討
行政院會簡報資料:農委會 禽流感現況、防疫措施與檢討
 
Diagram ven himpunan matematika diskrit .
Diagram ven himpunan matematika diskrit .Diagram ven himpunan matematika diskrit .
Diagram ven himpunan matematika diskrit .
 
Custom connectorsinmule
Custom connectorsinmuleCustom connectorsinmule
Custom connectorsinmule
 
O brasil rumo à depressão econômica
O brasil rumo à depressão econômicaO brasil rumo à depressão econômica
O brasil rumo à depressão econômica
 
Women's day quotes
Women's day quotesWomen's day quotes
Women's day quotes
 
Version terminada de revista
Version terminada de revistaVersion terminada de revista
Version terminada de revista
 
CÁLCULOS BILIARES y COLECISTITIS AGUDA Y CRÓNICA
CÁLCULOS BILIARES y COLECISTITIS AGUDA Y CRÓNICACÁLCULOS BILIARES y COLECISTITIS AGUDA Y CRÓNICA
CÁLCULOS BILIARES y COLECISTITIS AGUDA Y CRÓNICA
 
Portfolio de diseño
Portfolio de diseñoPortfolio de diseño
Portfolio de diseño
 
PERIODICO MURAL
PERIODICO MURALPERIODICO MURAL
PERIODICO MURAL
 
行政院會簡報:僑委會 新南向政策之作法及成果
行政院會簡報:僑委會 新南向政策之作法及成果行政院會簡報:僑委會 新南向政策之作法及成果
行政院會簡報:僑委會 新南向政策之作法及成果
 
Notam 30 07-15
Notam 30 07-15Notam 30 07-15
Notam 30 07-15
 
день спасайкина
день спасайкинадень спасайкина
день спасайкина
 

Firefox OS Apps

  • 1.
  • 2. App Development for Firefox OS HTML 5 CSS 3 JavaScript
  • 3. Structure of an App App - app.css - app.js - manifest.webapp - images - icons and other images - index.html
  • 4. The all important manifest! Web App manifest contains information that a Web browser needs to interact with an app. It is a JSON file with a name and description for the app, and it can also contain the origin of the app, icons, and the permissions required by the app, among other things.
  • 5. Installing an App for testing Via the Simulator dashboard Via browser

Hinweis der Redaktion

  1. The main components for creation of apps for fOS are html5, css3, js.(For graphics – webgl libraries, device apis) HTMl5 and CSS3 take care of the designing part : this includes all the UI, buttons, interactive elements. JS contains the functional logic. Now, designing an app from the scratch using barebones html,css and js is quite tedious. Luckily we’ve got lots of Javascript frameworks which do just that. Eg: jQuery Mobile, Titanium mobile, Sencha Touch, Dojo mobile, Moo Tools..etc. They not only give readymade objects like lists, buttons and other controls optimized for touch, but also the css style sheets for designing. (Show code of the online demo launcher) Hemanth Devarapalli (kernelhunter92@gmail.com)
  2. These are the main contents of an App. As discussed before, we’ve got the CSS files for the styling. There are js files containing the logic. And we’ve got the html files which invoke them. The “index.html” by default is the first page to be called once the app is opened. Via this, other pages can be opened. Then, we have the images. Along with the images used for the pages, we also need images got the icons to be used. Finally comes the all important manifest file. This json contains all the necessary information and meta-data required by the app. The manifest is mandatory for all apps. Hemanth Devarapalli (kernelhunter92@gmail.com)
  3. This is perhaps one of the most important files in the App. This contains the essential information as well as the meta-data of the application. Some of the fields included are: the name, URL, developer info, launch_path, icons, app_cache, install_paths ..etc Hemanth Devarapalli (kernelhunter92@gmail.com)
  4. So, first we’ll try using the simulator dashboard. We give the location of the manifest. This automatically runs the app. Here, the whole folder is copied into the phone. Now, the next method is via the browser. This is done by invoking a simple javascript command (show the command). Now, this requires the paths in the manifest to be changed. Here, the origin of the app is considered to be the source url. So, more specific paths are to be given. Hemanth Devarapalli (kernelhunter92@gmail.com)
  5. A quick revision. We’ve gone through all the required technologies for writing fOS apps : html, css, js. Then, once the app is created and tested in desktop browser, we add the necessary code for making it mobile. That involves adding the manifest file : which contains all the meta-data and the info. Now the remaining part is how to install. Normally, once we finish writing the app, we submit it to the app store. Or else, you can host it on your own server/drive. So, in order to install from the site, we call “mozApps.install()” function giving it the location of our manifest. Although for testing purposes, simulator dashboard can be used for installing the app directly. This concludes the app demo. Hemanth Devarapalli (kernelhunter92@gmail.com)