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.
Recommended Reading: 10 Tips To Tighten Security on Your Android Device
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 |
(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 the Android 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 Foldersdkplatform-tools".
(3)
Open the command prompt from the Start menu or screen then type:
cd <Android SDK Folder file path>sdkplatform-tools
For example, Android SDK Folder on our test computer was located at âD:Andadt-bundle", so the command changes to âcd D:Andadt-bundlesdkplatform-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.
Troubleshooting
Lastly, here are some of the problems you might encounter and the suggested solutions.
Internet not working in the AVD.
Please check if your firewall or internet security program is blocking Internet access for the program named âemulator-arm.exe".
Canât set the RAM greater than 768MiB for the AVD.
Setting the RAM for AVD greater than 768MiB on Windows will cause the AVD to crash because of non-allocation of required memory due to platform restrictions. Please choose a maximum of 768MiB if you are experiencing crashes or errors.
AVD running too slow or hangs
Running the latest releases of Android on 768MiB of RAM can make it slow. Additionally, it will become slower if youâve installed many apps in the AVD. If you need a fast and responsive AVD, then create a new AVD with an older release of Android (Android 4.0 ICS or older versions will run better).
No comments:
Post a Comment