Whats B2G. Firefox OS (project name: Boot to Gecko also known as B2G) is an open source operating system for smartphones and tablet computers being developed by Mozilla. It is an implementation of letting HTML5 applications integrate the device’s hardware directly by using JavaScript. It has been demonstrated on Androidcompatible smartphones (from wikipedia). Firefox OS was developed entirely on HTML5 standards and will act as a multimedia website Telefonica Chief Executive, Matthew Key has claimed that the Firefox OS will offer a better budget experience than Android (may be) I think it Simple, quick and efficient
Trang 1BOOT TO GECKO (B2G)
Release date ~2013
(Reduced)
* What's B2G.
Firefox OS (project name: Boot to Gecko also known as B2G) is an open source operating system for smartphones and tablet computers being developed by Mozilla It is an implementation of letting HTML5 applications integrate the device’s hardware directly by using JavaScript It has been demonstrated on Android-compatible smartphones (from wikipedia)
Firefox OS was developed entirely on HTML5 standards and will act as a multimedia website
Telefonica Chief Executive, Matthew Key has claimed that the Firefox OS will offer "a better budget experience than Android" (may be)
I think it Simple, quick and efficient
Some picture:
Link demolive (better to use Firefox Nightly) : http://paulrouget.com/gaia/
Trang 2* How to setup.
(desktop)
1 Download the Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
2 Start the installer and follow the instructions
3 Download the pre-built installer for b2g-desktop with pre-compiled gaia
4 Start the installer and follow the instructions Be sure to leave the two checkboxes checked
(device)
To setup Firefox OS into your device, you must do following this page
https://developer.mozilla.org/en-US/docs/Mozilla/Boot_to_Gecko/Installing_Boot_to_Gecko_on_a_mobile_dev ice
Duong reseach >>linux
* How to use.
- You can use it just like Android OS (Firefox OS based on Android OS)
- To install app, you need to go to https://marketplace.mozilla.org/ to download and install app
* How to develop.
B2G app ~ web app
Html5,js …
Installing the Web app:
With the app and manifest published on the Web, you need to make Gecko aware of
it At install time, Gecko looks up the manifest and adds the necessary entries to the home screen, etc
Trang 3To install an app, call the navigator.mozApps.install() API Here's example for an install button that you could embed in your app when you self-host your app:
<script>
var manifest_url = "http://my.webapp.com/manifest.json";
</script>
<button onclick="navigator.mozApps.install(manifest_url); return false;"> Install this awesome app on your homescreen!
</button>
Note: the Install button could also be in an app market, such as the Mozilla Marketplace, but it's often very handy to have an "Install as web app" button on the main page of your site
Demo mozillaball : in file Attach
DM_Mozillaball.rar
*note : it’s something about B2G not all.i hope you satisfied
-25/10/2012
B2G is mainly two separate things: gecko and gaia
Trang 4• The gecko side is the hardware- related stuff and javascript APIs that we need to make the phone ………… that I don’t see
• Gaia - interface that I see
Gaia is basically everything that you can see and interact with.its the front-end operating system and application stack that hoods in to the APIs that B2G provides
APIs for B2G
Touch Events :…
Camera API:…
Trang 5webSMS API:…
webTelephone API:…
battery API:…
…
Apps are websites
Apps are websites and are built using the same technology and processes.
If you already know how to make a website then creating your first Web app is a breeze.
The only thing that you need to do to turn a website into app is create an application manifest have JSON file that efectively describes your application; it’s name, icons, and other
related data.
Installing apps
Behind the scenes, installing an app is achieved through the new mozApps JavaScript API.
By passing the ‘install’ method a string URL to the app’s manifest file you will trigger the installation process.
An example of when you would call this method is after a user clicks on an
“Install this app” button on your own website.
It would be called automatically if your app was installed from the Mozilla Marketplace, or any other external website
On Windows, a desktop shortcut is created for the app you installed and it will also be in the start menu.
On Mac, the app is added to your /Applications directory.
On B2G, the app is added to your homescreen.
>> I think html5 app is a b2g app ??
Example with WavySandbox:
Trang 6URL : file://///172.17.44.100/public/b2g/res/wavysandbox-install-c9c270b.zip
Trang 10Phuoc reseach many about b2g in destop hung reseach many about b2g in firefox Nightly duong reseach many about b2g in linux