-
Notifications
You must be signed in to change notification settings - Fork 31
Android Emulator Setup
This page will describe the steps necessary to create an Android emulator to test a version of Flow.
- Install the SDK
- Install Emulator package(s)
- Create an AVD
- Start the AVD
- While the AVD is running, install apk to AVD using ADB command
- Subsequent times you only need to start the AVD because the apk will already be installed (unless there is an update)
Begin by downloading and installing the Android SDK starter package from http://developer.android.com/sdk/index.html if you have not already done so.
(Detailed instructions at http://developer.android.com/sdk/adding-components.html)
- Find and start the SDK Manager application. On windows, you will need to run it as Administrator.
- Check the "Updates/New" option.
- Pick one or more API levels in the tree. At least level 6 is required. (Note that level 6 itself only shows up if you check the "Obsolete" option. Almost all phones in the world in 2012 are running level 7,8 or 10. Level 14 and up are mostly used on tablets and are larger and take longer to download.)
- For your level(s), check (at least) the "SDK platform" and "Google APIs" packages.
- Choose "Install Packages" button.
- Follow prompts to install including accepting the license and other prompts.
Now follow the instructions for creating an AVD (Android Virtual Device. This is the actual emulator itself - the shell that the application will run in):
http://developer.android.com/guide/developing/tools/avd.html
The AVD manager can be started from the SDK Manager's Tools menu. It can also be run separately, just like the SDK manager.
- Choose New
- Assign the AVD a name.
- Select a target of Google APIs (Google Inc.) - API Level 6 or later (Note that it is important to pick a choice that begins with Google APIs or FLOW won't install because of missing dependencies (maps API)
- It is recommended that you define a value for the SD Card Size in MiB.
- Select a Built-in Skin of Default (WVGA800) or larger.
- Leave Hardware section alone.
- Choose Create AVD.
http://developer.android.com/guide/developing/tools/emulator.html#starting
From Android AVD Manager choose Start while AVD is selected
- Open Windows Command Prompt (Start Menu -> in run box type "cmd" -> press enter -> should launch DOS Window)
- Navigate to where SDK is installed (Note you will need to substitute your username for xxx):
`cd \users\xxx\desktop\android-sdk\tools`
- Type:
`emulator -avd <AVD_NAME>`
-
Open OS X Shell (Navigate to Applications/Utilities/ and double-click Terminal)
-
Navigate to where SDK is installed:
cd android-sdk-mac_86-1/tools (or appropriate location) -
Type:
./emulator -avd <AVD_NAME>
You can use adb to copy an application from your development computer and install it on an emulator/device instance. To do so, use the install command. With the command, you must specify the path to the .apk file that you want to install:
adb install <path_to_apk>
For more information about how to create an .apk file that you can install on an emulator/device instance, see Android Asset Packaging Tool (aapt).
Note that, if you are using the Eclipse IDE and have the ADT plugin installed, you do not need to use adb (or aapt) directly to install your application on the emulator/device. Instead, the ADT plugin handles the packaging and installation of the application for you.
About Akvo Flow
Akvo Flow API
Developer Guides
- Deployments
- Development tools
- Android emulator setup
- Creating New Dashboard Instances
- Disabling Dashboard Instances
- Adding Translations to Dashboards
- Setup your development environment with IntelliJ IDEA
- Setup your development environment on Windows OS
Technical Specification
Regression Tests