Android

Saturday, November 03, 2012

How to Test Drive Google Android on Your PC Without Buying a Phone


Would you like to test drive the latest version of Google’s Android OS without buying a new mobile device?  Here’s how you can run Android on your PC for free with the Android SDK Emulator.
Android is the latest mobile OS to take the world by storm, but everyone doesn’t have access to the latest mobile devices.  Thankfully, there’s an easy way to run Android on your Windows, Mac, or Linux computer.  Google provides an Android emulator with their SDK, which is designed to let developers test their apps on Android before running them on handsets.  We can use this to test drive Android on our computer, here’s how to do it.
Getting Started
The Android Emulator requires Java to run, so if you don’t already have Java installed on your computer, download it from the link below and install as normal.
image
Note: When installing Java, make sure not to install any crapware it tries to sneak in like the worthless Yahoo toolbar.
sshot-2010-07-12-[19-46-59]
Then, download the Android SDK from Google (link below), and make sure to select the correct version for your computer.  Once it’s downloaded, unzip the files as normal.
image
In Windows, run the SDK Setup.exe program to get started running Android on your PC.
sshot-2010-07-09-[15-18-57]
The SDK will check Google’s servers for available packages.
sshot-2010-07-09-[15-19-09]
If you see an SSL error message, click the Settings tab on the left in the SDK and AVD Manager window that opened in the background.  Here, uncheck the Force https box, click Ok, and then reopen the setup.
image
Now, the Package Installer will open.  You can choose what you want to install, and then click Install to begin installing the Android emulator on your computer.
image
By default, all of the SDK platforms, samples, and APIs will be selected for install.  This can take quite a while to download, as several versions of Android are currently available.  If you only want to play around with Android, choose the version you want.  You’ll want the SDK Platform Android your.version.  Then click the Reject bullet on all the other entries, and click Install.  We wanted to try out the latest Android 2.2 as well as the older 1.5, so we downloaded both of them.
image
Once you’ve started installing, you’ll see a window showing the download and installation progress.  This may take a few minutes, depending on your Internet speed.
sshot-2010-07-09-[16-58-07]
You’ll have some little Androids in your taskbar, but unfortunately they don’t show the download progress.
sshot-2010-07-09-[15-25-59]
Setup an Android Emulator
Once the download is completed, you can setup an emulator to test drive Android on your computer.  Select the Virtual Devices from the left menu, and then click the New button on the right.
sshot-2010-07-12-[14-55-47]
Enter a name for your virtualized Android, and select the version of Android you want to use from the drop-down menu.  This will only show the version you installed previously, so you may only see one version listed depending on your selection.
sshot-2010-07-09-[19-24-18]
Enter a size under the SD Card entry; this is a virtual SD card that’s actually an IMG file that Android will use to store your settings and files in.  Then, select a screen size from the skin options.  The default is a standard, Nexus One-type display, while the others are different sizes including even a BlackBerry-style device.
image
Click Create AVD when you’re finished.
image
The program may appear to freeze while it is creating the AVD, so just wait until you see the confirmation window.
sshot-2010-07-09-[16-59-47]
You’re now ready to run Android on your PC!  Select your new virtual Android, and click Start on the right.
sshot-2010-07-09-[17-00-11]
You can choose to scale the display if you’ve chosen a larger screen size than your monitor will fit, and then select Launch.
sshot-2010-07-09-[17-02-08]
Android will now begin to load in your emulator.  Several command prompt windows may open, and then you’ll see the emulator itself.  Notice that the default, large screen size will display a keypad and virtual buttons on the right side of the emulated device.
sshot-2010-07-09-[17-02-21]
Android may take several minutes to load, especially on your first run.  After a while, the boot screen will switch to an Android boot animation.
image
Finally, you’ll be presented with your new Android home screen!  Use your mouse as you would normally, though remember that you don’t need to double-click to open apps.
image
You can open pre-installed apps from the launcher menu, though unfortunately these emulator images do not include the Android Marketplace.
image
View your favorite websites in the browser, and they will render just as they would on an Android device.  Note that you can enter text using the on screen keyboard in the emulator, or with your standard keyboard.  Since this is an emulator, you may notice some lag in entering text.
image
You can also install Apps that are directly available online.
image
Default apps such as Email work great, and you can even see most of the device settings in Android.
image
Click and hold on the home screen to change the background or try out widgets.
image
You’ll even see the nifty Android Lock screen if you leave your virtual machine alone for a few minutes.  Just click the arrow and drag it to the other side of the screen to unlock.
image
You can always repeat the steps later to create a new Android virtual machine.  Here we’ve created an Android 1.5 virtual machine with the QVGA screen size.
image
We did experience a few crashes in our tests, and the emulator felt somewhat sluggish, but in all, it’s fun to try  out a new mobile OS without spending money on a new phone.
image
Launch Android Virtual Machines Later
Anytime you want to launch your Android virtual machines in the emulator, just run the SDK Setup.exe as before, and select them from the Virtual Devices list.  Alternately, you can launch an emulator directly from the command line.  To do this, browse to your Android SDK folder and open the Tools folder.  Press the Shift key and right-click, and then select Open Command Window Here.
image
Now enter the following in the Command Prompt, substituting the name of your Android virtual machine for your_device:
emulator @your_device
image
Create a Shortcut For Your Android
Alternately, right-click on the Emulator.exe in the SDK Tools folder, and select Create Shortcut.
image
This shortcut would actually only run the emulator in Command Prompt and not load an actual virtual device.  We’ll need to change the properties to do this, so right-click and select Properties.
image
Select the Shortcut tab, and then scroll to the end of the Target box.  Enter the name of your virtual Android as before, as @your_Android after the emulator.exe, and then click Ok.
SNAGHTML1bb380c
Now you can launch your Android directly from your Desktop or Start menu.
image
Conclusion
Whether you’re a developer who wants to write the next greatest app for Android or are simply are curious about Android and would like to try it out without buying a new phone, the Android Emulator is a great way to get started for free.  It is also a great way to try out new versions of Android if you have an older device. We were disappointed that the Android Marketplace wasn’t included. but check back in the next couple days and we’ll show you how to run it in the emulator!
Also, don’t forget; if you’re using an aging Windows Mobile phone, you might be able to turn it into an Android phone.  Check out our tutorial on how to Run Android on Your Windows Mobile Phone.
Link
Download the Android SDK
Download Java for your computer

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.