Monday, 28 October 2013

Android on your Windows device



Do you want to try Android on your Windows device, get a taste of the latest Android release for testing or fun, or even for developing Android apps? Whatever your needs may be, here is how you can try the latest Android on Windows.
As Android is an open source mobile technology and platform, that means, anyone can access its code or system images from the AOSP (Android Open Source Project). And that’s what you need to have for running Android virtually on Windows.
Android can be easily virtualized on a Windows PC. It’s as easy as downloading some tools, installing, configuring and running them. What you need is the right procedures which we are going to show you here, plus some solutions to troubleshoot common problems.
Note: This tutorial was written to virtualize Android 4.2.2 JellyBean using 64-bit Android SDK Bundle running on Windows 8, but steps will be similar for any other Android release, or Windows architecture or release.

Prerequisites

Let’s start by looking over the requirements for running Android in a virtual environment.
(1)
Windows PC: A computer running XP or any later version of Windows operating system will do fine, i.e., XP, Vista, 7, 8, or any later version.
(2)
Java: Java 6 or later must be installed on your computer, because it’s required by the Android SDK Bundle. Install the latest available Java version for your platform.
(3)
Android SDK Bundle: The latest version of Android SDK bundle is required. Download and extract the file into a directory. You will see a folder named "adt-bundle-windows-…" This folder is referred to as the “Android SDK Folder" for the remainder of this tutorial. It contains two folders named “eclipse" and “sdk", and one file named “SDK Manager.exe".
(4)
Android SDK packages: Open “SDK Manager.exe" from the Android SDK Folder. Check “Android 4.2.2 (API 17)" in the SDK Manager. This gives you the necessary SDK packages for running Android in a virtualized environment.
Note: You can decrease the download size by unchecking unnecessary sub-packages of the Android release. Click on the extend button (>) beside the Android release. Check only these sub-packages:
  • SDK Platform
  • ARM EABI v7a System Image
  • Google APIs.
Then, click on Install packages… to download and install the required packages.

Create And Run Android Virtual Device

Time to create your first Android Virtual Device.
(1)
Open “SDK Manager.exe" from the Android SDK Folder. Browse to Tools > Manage AVDs. The Android Virtual Device Manager will open.
(2)
Click on the New… button (top right) and you will see the Create new Android Virtual Device (AVD) window appear. Configure the new AVD as per the following configurations:
AVD Name:Any name
Device:Galaxy Nexus (4.65", 720 x 1280: xhdpi)
Target:Android 4.2.2 – API Level 17
CPU/ABI:ARM (armeabi-v7a)
Keyboard:Checked
Skin:Checked
Front Camera:None
Back Camera:None
Memory Options – RAM:768
Memory Options – VM Heap:32
Internal Storage:200 MiB
SD Card – Size:500 MiB
Emulation Options- Snapshot:Unchecked
Emulation Options – Use Host GPU:Unchecked
Amazon
(3)
You can now view it in the list of existing AVDs in the AVD Manager. Congratulations on creating your first Android Virtual Device!
To start this up, select the AVD in the AVD Manager. Click on Start, then Launch. Wait for it to boot up then enjoy.
And there you have it, Android running on your Windows PC. Click around and get a feel of the Android interface (if this is your first time) before we get to the next section: trying out Android apps.

App Installation In AVD

While Google Play Store is the primary source of Android apps, unfortunately it is not present in theAndroid Virtual Device (AVD). However, there is a method to install apps in the AVD using Android Debug Bridge (ADB). We’ll also show you how to uninstall unwanted apps.

Installing An App

We’re going to run by you the steps required to install an app. We’re using the UC Browser Mini as an example.
(1)
With AVD running, download the apk file for UC Browser Mini from AppsZoom (search for your app, open the page for your app from the search results, click on Download tab in the opened page, and click on the option to direct download APK file).
(2)
Copy the downloaded file to "Android SDK Folder\sdk\platform-tools".
(3)
Open the command prompt from the Start menu or screen then type:
For example, Android SDK Folder on our test computer was located at “D:\And\adt-bundle", so the command changes to “cd D:\And\adt-bundle\sdk\platform-tools".
(4)
Type “adb start-server" at the prompt. It should report that the daemon started successfully.
(5)
Type “adb devices" at the prompt. It should report a connected device with “emulator". If no device is reported, then you may not have started the AVD. Restart, wait for the android’s home screen, and re-type “adb-devices" at the prompt.
(6)
Type “adb install <APK File>" at the prompt, after changing <APK File> with the name of the .apk file (of the android app) you want to install in the AVD. For example, the .apk file on our test sytem was named “ucb-mini.apk", so the command changes to adb install ucb-mini.apk.
(7)
Wait while ADB pushes the APK file into the AVD and installs it. It might take some time depending on the size of the app which you’re installing. When the installation is complete, It should report success.

Uninstalling An App

Inside the AVD, Go to Settings from the app launcher, then to Applications > Downloaded. Click on the app you want to remove, then click Uninstall. Click OK to confirm then wait. That’s it.

No comments:

Post a Comment