Mobile/Fennec/Android/Emulator: Difference between revisions

From MozillaWiki
< Mobile‎ | Fennec‎ | Android
Jump to navigation Jump to search
m (→‎Prerequisites: Linkifying Android SDK)
m (→‎Prerequisites: Mention SDK Platform-tools needs to be installed)
Line 5: Line 5:
As Fennec requires an ARMv7 architecture, we need an AVD (Android Virtual Device) that has the ''armeabi-v7'' CPU ABI. Such a device definition and images are only included in the newest SDK (at least revision 15). To ensure you have all the required software, first install an [http://developer.android.com/sdk/index.html Android SDK] if you don't have one yet, then open your android SDK manager (tools/android) and perform the following steps:
As Fennec requires an ARMv7 architecture, we need an AVD (Android Virtual Device) that has the ''armeabi-v7'' CPU ABI. Such a device definition and images are only included in the newest SDK (at least revision 15). To ensure you have all the required software, first install an [http://developer.android.com/sdk/index.html Android SDK] if you don't have one yet, then open your android SDK manager (tools/android) and perform the following steps:


* Check if any updates to your SDK are available and install them
* Check 'Android SDK Tools' and 'Android SDK Platform-tools' are installed and up to date
* In your packages list, you should then have an entry "Android 4.0 (API 14)". Check this category and install all packages.
* In your packages list, you should then have an entry "Android 4.0 (API 14)". Check this category and install all packages.
* Read about using the [http://developer.android.com/guide/developing/devices/emulator.html Android emulator] and how to [http://developer.android.com/guide/developing/tools/emulator.html launch] the emulator.
* Read about using the [http://developer.android.com/guide/developing/devices/emulator.html Android emulator] and how to [http://developer.android.com/guide/developing/tools/emulator.html launch] the emulator.

Revision as of 11:24, 23 November 2011

Running Fennec in Android Emulator

Prerequisites

As Fennec requires an ARMv7 architecture, we need an AVD (Android Virtual Device) that has the armeabi-v7 CPU ABI. Such a device definition and images are only included in the newest SDK (at least revision 15). To ensure you have all the required software, first install an Android SDK if you don't have one yet, then open your android SDK manager (tools/android) and perform the following steps:

  • Check 'Android SDK Tools' and 'Android SDK Platform-tools' are installed and up to date
  • In your packages list, you should then have an entry "Android 4.0 (API 14)". Check this category and install all packages.
  • Read about using the Android emulator and how to launch the emulator.

Creating the AVD

Avd-manage-menu .png

Open the Android Virtual Device Manager (in the SDK Manager under tools), create a new entry and make sure you use "Android 4.0 (API Level 14)" as target. You can attach a virtual SD card as well and change display settings if you like. You can also set the device's RAM, which would help improve performance (recommended amount: 1024MB). In the hardware list further down you can add or remove hardware support, e.g. you can simulate not having a hardware keyboard by adding "Keyboard support" to the list and changing that entry to "No" then.

Avd-emulator.png

Starting the AVD

Select the AVD from the list and hit "Start". Booting up takes a while, and the device is very slow (especially with larger resolutions).

Avd-manage.png