mozilla

Revision 353861 of Firefox for Android

  • Slug da revisão: Mozilla/Firefox_for_Android
  • Título da revisão: Firefox for Android
  • ID da revisão: 353861
  • Criado:
  • Autor: vitorinoaraujo
  • É revisão atual? Não
  • Comentário
Etiquetas: 

Conteúdo da revisão

Para cada vez mais pessoas, os dispositivos móveis são o principal meio, ou até o único, para aceder à Internet. Firefox para Android (nome de código Fennec) é um browser aberto, hackable, baseado em standards , tal como a versão Firefox para desktop.

Firefox para Android constrói o seu user interface a partir de widget nativas de Android em deterimento do XUL: isto aumenta de forma significativa a performance, especialmente tempo de arranque, e consumo de memória. Actualmente esta versão é específica para telefones, e a versão tablet ainda usa XUL. No futuro, esperamos suportar de forma oficial a versão com UI nativo também nos tablets.

Contribute to Firefox for Android

The main starting point for information about the Firefox for Android project itself is the project Wiki page.

You can help us to create and improve Firefox for Android:

Develop for the mobile web

We've started putting together a guide to designing web sites for mobile devices.

With Firefox for Android, you've got access a number of APIs that expose the underlying capabilities of the device, closing the gap between the Web and native applications:

To test your web site on Firefox for Android, you can install it on an Android device or run it on your desktop using the Android Emulator.

Build mobile add-ons

Firefox for Android supports add-ons using the exact same extension system used by all other Gecko-based applications. We did not invent a new add-on system. This means that building an add-on for Firefox on Android is the same process that would be used for desktop Firefox. Add-ons that work with desktop Firefox do not automatically work in Firefox on Android. The user interfaces are just too different.

Firefox on Android has a unique application identifier which must be used in install.rdf. The identifier is {aa3c5121-dab2-40e2-81ca-7ea25febc110}

Both classic restart-required and newer restartless add-on approaches are supported. Using the restartless approach is preferred whenever possible because the user experience is far superior to forcing an application restart when installing or removing an add-on.

Quick Overview

  • There is no visible XUL in the UI, so using overlays to try to add or change UI is useless.
  • Internal code and objects, like gBrowser, do not exist. Look at the Firefox on Android browser.js file to learn about the internals. Much of the same fundamental functionality exists.
  • Services like nsIPromptService and nsIAlertsService are implemented to use native Android UI.
  • There is a simple JavaScript object, called NativeWindow, that allows you to manipulate parts of the native Android UI.

Get help with Firefox for Android

Documentation and tutorials for using and troubleshooting Firefox for Android are available on the Mozilla Support website.

Fonte da revisão

<p>Para cada vez mais pessoas, os dispositivos móveis são o principal meio, ou até o único, para aceder à Internet.<a class="link-https" href="https://www.mozilla.org/en-US/mobile/"> Firefox para Android</a> (nome de código Fennec) é um browser aberto, hackable, baseado em standards , tal como a versão Firefox para desktop.</p>
<p>Firefox para Android constrói o seu user interface a partir de widget nativas de Android em deterimento do XUL: isto aumenta de forma significativa a performance, especialmente tempo de arranque, e consumo de memória.&nbsp;<span style="line-height: inherit;">Actualmente esta versão é específica para telefones, e a versão tablet ainda usa XUL. No futuro, esperamos suportar de forma oficial a versão com UI nativo também nos tablets.</span></p>
<h2 id="Contribute_to_Firefox_for_Android">Contribute to Firefox for Android</h2>
<p>The main starting point for information about the Firefox for Android project itself is the <a class="link-https" href="https://wiki.mozilla.org/Mobile">project Wiki page</a>.</p>
<p>You can help us to create and improve Firefox for Android:</p>
<ul>
  <li>help us <a class="link-https" href="https://wiki.mozilla.org/Mobile/Testdrivers_Program">with testing</a>
    <ul>
      <li>test top sites for mobile gecko compatibility - see <a href="https://developer-new.mozilla.org/en-US/docs/Mozilla/Firefox_for_Android/Compatibility_Testing" title="https://developer-new.mozilla.org/en-US/docs/Mozilla/Firefox_for_Android/Compatibility_Testing">here</a> for more information</li>
    </ul>
  </li>
  <li>contact the team over <a class="link-irc" href="irc://irc.mozilla.org/#mobile">IRC</a> or join in our <a class="link-https" href="https://wiki.mozilla.org/Mobile/Notes">Wednesday development meeting</a></li>
  <li>keep up to date with project news on <a class="external" href="http://planet.firefox.com/mobile/">planet firefox</a> and <a class="link-https" href="https://twitter.com/#!/mozmobile" title="https://twitter.com/#!/mozmobile">Twitter</a></li>
  <li><a href="https://wiki.mozilla.org/Mobile/Fennec/Android" title="https://wiki.mozilla.org/Mobile/Fennec/Android">build and hack on Firefox for Android</a> (Fennec)</li>
</ul>
<h2 id="Develop_for_the_mobile_web">Develop for the mobile web</h2>
<p>We've started putting together a guide to <a href="/En/Mobile" title="En/Mobile">designing web sites for mobile devices</a>.</p>
<p>With Firefox for Android, you've got access a number of APIs that expose the underlying capabilities of the device, closing the gap between the Web and native applications:</p>
<ul>
  <li><a class="external" href="http://hacks.mozilla.org/2012/02/using-the-battery-api-part-of-webapi/" title="http://hacks.mozilla.org/2012/02/using-the-battery-api-part-of-webapi/">Battery</a></li>
  <li><a href="/en/DOM/Using_the_Camera_API" title="Using the Camera API">Camera</a></li>
  <li><a href="/en/API/WebTelephony/Introduction_to_WebTelephony" title="Introduction to WebTelephony">WebTelephony</a></li>
  <li><a href="/en/API/WebSMS/Introduction_to_WebSMS" title="Introduction to WebSMS">WebSMS</a></li>
  <li><a href="/En/Using_geolocation" title="Using geolocation">Geolocation</a></li>
  <li><a href="/en/Detecting_device_orientation" title="https://developer.mozilla.org/en/detecting_device_orientation">Orientation</a></li>
</ul>
<p>To test your web site on Firefox for Android, you can <a class="link-https" href="https://www.mozilla.org/en-US/mobile/">install it on an Android device</a> or <a class="link-https" href="https://wiki.mozilla.org/Mobile/Fennec/Android/Emulator">run it on your desktop using the Android Emulator</a>.</p>
<h2 id="Build_mobile_add-ons">Build mobile add-ons</h2>
<p><a href="/en/Extensions/Mobile" title="en/Extensions/Firefox_on_Android">Firefox for Android supports add-ons</a> using the exact same <a href="/en/Extensions" title="en/Extensions">extension system</a> used by all other Gecko-based applications. We did not invent a new add-on system. This means that building an add-on for Firefox on Android is the <a href="/en/Building_an_Extension" title="en/Building_an_Extension">same process</a> that would be used for desktop Firefox. Add-ons that work with desktop Firefox <strong>do not</strong> automatically work in Firefox on Android. The user interfaces are just too different.</p>
<div class="note">
  Firefox on Android has a unique application identifier which must be used in <code>install.rdf</code>. The identifier is <code>{aa3c5121-dab2-40e2-81ca-7ea25febc110}</code></div>
<p>Both classic restart-required and newer <a href="/en/Extensions/Bootstrapped_extensions" title="en/Extensions/Bootstrapped_extensions">restartless</a> add-on approaches are supported. Using the restartless approach is preferred whenever possible because the user experience is far superior to forcing an application restart when installing or removing an add-on.</p>
<h3 id="Quick_Overview">Quick Overview</h3>
<ul>
  <li>There is no visible XUL in the UI, so using overlays to try to add or change UI is useless.</li>
  <li>Internal code and objects, like <code>gBrowser</code>, do not exist. Look at the Firefox on Android <a class="external" href="http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js" title="http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js"><code>browser.js</code></a> file to learn about the internals. Much of the same fundamental functionality exists.</li>
  <li>Services like <code>nsIPromptService</code> and <code>nsIAlertsService</code> are implemented to use native Android UI.</li>
  <li>There is a simple JavaScript object, called <a href="/en/Extensions/Mobile/API/NativeWindow" title="en/Extensions/Mobile/NativeWindow"><code>NativeWindow</code></a>, that allows you to manipulate parts of the native Android UI.</li>
</ul>
<h2 id="Get_help_with_Firefox_for_Android">Get help with Firefox for Android</h2>
<p>Documentation and tutorials for using and troubleshooting Firefox for Android are available on the <a class="external" href="http://support.mozilla.org/mobile" title="http://support.mozilla.org/mobile">Mozilla Support website</a>.</p>
Reverter para esta revisão