Mobile/Fennec/Android/Emulator

< Mobile‎ | Fennec‎ | Android
Revision as of 11:24, 23 November 2011 by Edmorley (talk | contribs) (→‎Prerequisites: Mention SDK Platform-tools needs to be installed)

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

 

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.

 

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).