This is a guide meant for novice, beginners and non-programmers who would like to use the Android SDK to do some basic things on Microsoft Windows computers. (Since you are not going to be developing applications on Android, you don't need to install ADT Plugin for Eclipse.)
If you still do not understand how to do it after you have read the materials below, you best option would be to look at some video tutorial which can be found on Youtube made by different users. Or you may try our support forum.
To use the Android emulator or the tools inside the SDK on an Android device, you need to do the following:
Download the latest SDK manager from the Android developer site.
If you downloaded a .zip package (instead of the SDK installer), unpack it to a preferred location on your machine. By default, the SDK files are unpacked into a directory named android-sdk-<machine-platform>. You will need to have Java Runtime Environment installed, otherwise the SDK will not work. For those running 64 bit windows, make sure you have installed the 32 bit version of the Java Runtime Environment.
If you downloaded the Windows installer (.exe file), run it now and it will check whether the proper Java SE Development Kit (JDK) is installed (installing it, if necessary), then install the SDK Tools into a default location (which you can modify).
Locate and open the folder where you have extracted the Android SDK and then double-click the SDK Manager.exe file. The SDK manager will attempt to connect to the internet and download the list of components you can download. When the list is downloaded, you will see the screen below.
Select the componenet you want to download and click install. To download the Android 3.0 SDK, select SDK Platform Android 3.0, select the accept button and click install. Note: If you use the "Accept All" option, it will download everything listed. You don't need to do that.
Since you would be connecting your Android device to the computer, you will need to download the USB driver. Expand the option for "Third party add-ons" and then the "Google inc add-ons", tick the checkerbox for the "Google USB driver package" and then click the "Install Selected" button below.
As explained in the Official Android developer installation guide. The Android Repository offers these types of components:
<sdk>/tools/directory of your SDK and read more about them in the Tools section of the developer guide.
<sdk>/platform-tools/directory. Read more about them in the Tools section of the developer guide.
The Third party Add-ons provide components that allow you to create a development environment using a specific Android external library (such as the Google Maps library) or a customized (but fully compliant) Android system image. You can add additional Add-on repositories, by clicking Add Add-on Site.
After the SDK platform download you selected is completed, click on the Virtual devices option as shown below.
Click on "new" and you will see the screen below.
Enter the name you want to call this Android Virtual Device (AVD), e.g. Gen-E_tablet; select the target platform, e.g. Android 3.0; enter the size of the virtual SDcard, e.g. 100MB; at the skin section, select from the list of preset resolutions or specify your own and then click "Create AVD".
Note: it is reported by some people that the Android 2.3 and Android 3.0 emulator runs very slowly, i.e. would require computer with high performance CPU to run smoothly.
After clicking OK from the prompt, select the AVD you want to use and then click "Start" to run the emulator. Then, you can tick the option "Scale to real size" if you want to see the emulator run in full resolution as you have configured earlier. If you tick the option "Wipe user data", all your previous applications, settings, etc will be deleted and reset to default.
Wait for the loading to finish and start have fun with the emulator. Note: it can take 5 mins or more for the emulator to start up.
Once Android emulator is running, you can also capture screen using the Dalvik Debug Monitor Service (ddms) tool. To run DDMS, double click on ddms.bat located within the tools folder, i.e. android-sdk-<machine-platform>\tools\ddms.bat
To capture the screen, select Device -> Screen Capture
A pop-up window will show up with a few options. To update the screen to match the emulator or device's, click "Refresh". To save the captured screen, click "Save".
You can also capture the screen of an actual Android device using DDMS.
First, using your Android device, go to Settings -> Applications -> Development -> Enable USB debugging
Second, connect your Android hardware to the computer using the USB cable and install the USB driver.
To install the Android USB driver on Windows 7 for the first time:
See the Official Android developer's USB driver installation guide for details on installing the USB driver on Windows XP and Windows Vista.
In order for the application developer to fix problems with the application, e.g. forced close issues. It is often necessary to provide them with a detailed description of your action which the developer can be replicate and application/error log.
Using DDMS, one will be able to see the errors in the log as well as export, i.e. save it, so that it can be sent to the developer for further analysis.
With DDMS running and your device/emulator connected, select one of the row in the log field, click "Edit -> Select All" at the menu, then click on the save icon and it will trigger a prompt to ask you where to save the log.
DDMS can also be used to browse, copy files to and from the emulator/device. With the device connected and DDMS opened, click "Device" -> "File Explorer..." to enter the file browsing interface. One of the button at the top allow one to pull (copy) files from the emulator/device while the other allow one to push (copy) files from the emulator/device.
To access some advanced functions in the SDK, one need to use the command prompt interface. To access command prompt in Windows 7, click Start -> All Programs -> Accessories -> Command Prompt
When the command prompt interface is opened, one needs to navigate to the tools folder inside the SDK folder before commands can be issued. In the example screenshot below, the SDK folder is saved under c drive.
Click here for related information.
1) The emulator does not come with the Android market, Google voice search and other Google proprietary application, how can you have them on the emulator?
a) Go to the HTC website and download the ADP system image
b) Extract the files and replace the emulator AVD's with the system.img from the ADP system image
c) Start the emulator normally. Now you are running the ADP system image on emulator with all the proprietary applications that are not included in the Android SDK, such as Android Market, Google Voice Search, etc......
For more info, see Kumar Bibek's blog
2) How do you rotate the emulator screen?
a) Switch to previous layout orientation (for example, portrait, landscape) -> KEYPAD_7, F11
b) Switch to next layout orientation (for example, portrait, landscape) -> KEYPAD_9, F12
3) How to see Phone information, Battery information, Usage Statistics and Wifi information?
In the phone dialer, enter *#*#4636#*#*