I am in the process of building some mobile apps for one of my clients, and while I'm pretty familiar with running the iPhone simulator and, I'm pretty new to the Android development tools at this point. So I thought I would give a quick and easy guide for folks to follow, that might be interested in getting started with Android Development and running the Android Emulator. I should mention that there is also an Eclipse Plugin for Android Development as well that you can use instead.
Also, I'm using a Mac, but I think the steps should be pretty close if you are running Windows or Linux. Step 1 - Download the Android SDK the Android SDK, and unzip it somewhere. I placed the android-sdk-mac86 folder in my /Applications/ folder, but you can put it wherever you want. Step 2 - Optional Add to System Path Since we are using the command line you might find it useful to add the android-sdk- platform/tools folder to your system path so you can run the android commands from any folder. If your interested in doing that, Google provides instructions.
Click on the download link to download the selected System Image. /Users/HDO/Library/Android/sdk/tools/emulator -netdelay none -netspeed full -avd. Download and unzip the Android SDK and support packages. The following procedure is for the Windows environment, for the Mac, run the following.
Step 3 - Install Android Platforms At this point, I tried running the emulator command, but the SDK doesn't contain any Android Platforms, the Android platform is essentially Android OS, you need to install at least one version (eg 1.6, 2.1, 2.2, etc) to run the emulator. To install platforms run the android command located in the tools folder of the SDK (use Terminal.app on a Mac, or the Command Prompt on Windows, Linux folks you know what to do:). This will pop up a window. Select Available Packages, pick some platform versions and install. Step 4 - Create a Virtual Device Still in the android tool, click on Virtual Devices on the left, and then click New.
Here's an example of the settings for the new device. I am getting the following message:- Starting emulator for AVD '40And4' Failed to create Context 0x3005 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. Could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB emulator: emulator window was out of view and was recentered.
![Android sdk emulator Android sdk emulator](/uploads/1/2/5/4/125486853/141598452.png)
Some developers may wish to develop mobile VR applications without using Android Studio. This section describes how to set up for development using the basic set of tools needed for development using the standalone Android SDK and Gradle. Download the SDK Tools Package from the following location: (under “Get just the command line tools”). Once downloaded, unzip the archive into the directory where you would like to install it, e.g., /Dev/Android/android-sdk-r24.4.1.
Set the environment variable ANDROIDHOME to your Android SDK location. The correct syntax for setting your environment variable is: export ANDROIDHOME=/android-sdk-r24.4.1.
Add the SDK tools and platform tools directories to your PATH: PATH=$PATH:$ANDROIDHOME/tools:$ANDROIDHOME/platform-tools Installing Additional Packages and Tools. You must download additional packages required by the Mobile SDK via the Android Studio SDK Manager, found in Tools Android SDK Manager. Android Studio may prompt you to take this step automatically the first time you launch it.
The following packages are required for native development:. Android SDK, API level 19 or later. Android Build Tools Once the Android SDK is installed, launch the SDK Manager to verify that you have installed the latest stable SDK Tools, Platform-tools, and Build-tools. Also verify that you have at least one SDK Platform-tools installed, preferably the one you intend to target with your application. Android Native Development Kit (NDK). Gradle is a build automation suite used by our standalone build scripts and by Android Studio to manage dependencies and allow for custom build logic.
Gradle replaces the previous Android build system, Ant, which is now deprecated for use in Android development. It is not necessary to install Gradle to use the Mobile SDK. Oculus Mobile SDK 1.0+ build scripts use the Gradle Wrapper (gradlew), a small wrapper that automatically downloads and installs Gradle the first time you build a project. However, if you wish to install the full version of Gradle, we have included instructions. The latest version which has been tested with this release is Gradle 2.10. Choose the Complete download if you want the Gradle source and offline documentation.