mozilla

Revision 353865 of Firefox for Android

  • Slug da revisão: Mozilla/Firefox_for_Android
  • Título da revisão: Firefox for Android
  • ID da revisão: 353865
  • 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.

Contribui para o Firefox para Android

O ponto de partida para informação acertca do projecto Firefox para Android é a página Wiki do projecto.

Podes ajudar a criar e melhorar Firefox para Android:

Desenvolve para a mobile web

Começamos a criar um guia para deenhar web sites para dispositivos móveis.

Com Firefox para Android, podes aceder a um numero of APIs que expoem as capacidades do dispositivo, diminuíndo a distância entre a Web e as aplicações nativas:

Para testar o seu web site no Firefox para 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">Contribui para o Firefox para Android</h2>
<p>O ponto de partida para informação acertca do projecto Firefox para Android é a&nbsp;<a class="link-https" href="https://wiki.mozilla.org/Mobile">página Wiki do projecto</a>.</p>
<p>Podes ajudar a criar e melhorar Firefox para Android:</p>
<ul>
  <li>ajudar nos&nbsp;<a class="link-https" href="https://wiki.mozilla.org/Mobile/Testdrivers_Program">com teste</a>s
    <ul>
      <li>testar sites para compatibilidade mobile gecko - ver&nbsp;<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">a</a>qui para mais informação</li>
    </ul>
  </li>
  <li>contactar a equipa através do&nbsp;<a class="link-irc" href="irc://irc.mozilla.org/#mobile">IRC</a> or jjuntares te à&nbsp;<a class="link-https" href="https://wiki.mozilla.org/Mobile/Notes">reunião desenvolvimento de quarta feira</a></li>
  <li>materes-te actualizado acerca das notícias do projecto em&nbsp;<a class="external" href="http://planet.firefox.com/mobile/">planet firefox</a> e no&nbsp;<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">Desenvolve para a mobile web</h2>
<p>Começamos a criar um guia para&nbsp;<a href="/En/Mobile" title="En/Mobile">deenhar web sites para dispositivos móveis</a>.</p>
<p>Com Firefox para Android, podes aceder a um numero of APIs que expoem as capacidades do dispositivo, diminuíndo a distância entre a Web e as aplicações nativas:</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/">Batter</a>ia</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">Geoloca</a><a href="/En/Using_geolocation" title="Using geolocation">lização</a></li>
  <li><a href="/en/Detecting_device_orientation" title="https://developer.mozilla.org/en/detecting_device_orientation">Orientaç</a>ão</li>
</ul>
<p>Para testar o seu web site no Firefox para 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