How to install Android SDK on your Windows 7 Computer
I followed this excellent guide to install Android SDK on my computer, but the guide assumes a lot of things and it didn't go into the detail I needed. After 2 days of struggling I was finally able to get it working. Hopefully you can learn from the pitfalls I went through and it won't be nearly as challenging for you to install.
My instructions are going to be basic and over simplified - sort of like SDK for Dummies. The reason I'm saying this is for installing on a Windows 7 computer is because the screen shots and the information that follows will be from Windows 7. The guide that I followed and linked above had instructions based on Windows XP.
Before you get started, you will need to download two pieces of software; the Java SDK and the Android SDK. Here are the links:
When I clicked the link to download Java, I struggled because there were so many choices. The following graphic shows the one I finally settled on:
The Android SDK supports Windows, Mac and Linux. In this case, I chose the Windows download:
Once your downloads are complete, you are ready for installation.
On your computer:
Extract the Google Android SDK to a folder on your desktop. I'd suggest making the folder in the root of your C: drive - C:\Android. After you unzip the files to C:\Android, it should look like this:
Install the the Java SE SDK by double-clicking "java_ee_sdk-5_08-jdk-6u20-windows.exe". I would install everything using the defaults. Java will be installed in a folder called "C:\Sun".
On the HTC EVO 4G:
Now you are ready to get started. Use Windows Explorer and navigate to C:\Android, the douple-click "SDK Setup.exe". That will bring up the Android SDK and AVD Manager.
Click the tab on the left that says "Available Packages", then click the + sign next to the repository link to see the following. Click the checkbox indicated by the top arrow, then click "Install Selected". That will install the whole SDK.
Next step:
This is one of the spots that didn't work for me. I got the message "Driver not found". That's because I have 64-bit Windows and none of the drivers that came with SDK worked. I didn't know what to do, but LatinP found some new signed, updated drives that did work with the EVO 4G. If you have the same problem, you can download the drivers here. After you download this file, unzip it's contents to a new folder C:\Android\usb_driver\vista drivers.
If you didn't get a good install on the USB driver, you'll have to go into the "Device Manager" on your PC to remove the device, then refresh the list to try installing the driver again.
If you get a good install, you will see "My HTC" as indicated by the arrow. If you didn't get a good install, under "Other devices" you will see "ADB" with the yellow "!" next to it, like I have here for PCI Simple CC circled in red. If this is your case, follow these steps:
Once you get the USB driver installed properly, you have to set the correct PATH in the Windows Environment. This is another area where I had problems, but it's easy once you catch on. If you fail to follow this step the SDK will not work. Here's the steps:
This completes the installation of the SDK. The next step is to unplug your phone and reboot your computer.
To use SDK for screen capture:
Voila! You now have a stunning screenshot from the display on your HTC EVO 4G. Repeat steps 2-4 to generate more screenshots, or change screens on the phone and press the "Refresh" button when the screen capture is active.
Installing SDK is a step toward rooting your phone, but if you only want to do screen captures, you can save a lot of steps and a lot of trouble by using an Android app called "ShootMe". It takes about 2 minutes to install it and learn it. I didn't find out about it until after I struggled installing the Android SDK, but at least that's installed now too. As far as the quality of the screen shots, the ones from ShootMe are just as good as the ones using the SDK. The way ShootMe works, you click on the ShootMe app to start it, then go to the screen where you want to make a screen capture. All you have to do is shake the phone and it snaps the picture and saves it on your SD card in the ShootMe folder in the cards root. That makes it simple to share or e-mail shots of your Home screen or whatever.
Good luck!
My instructions are going to be basic and over simplified - sort of like SDK for Dummies. The reason I'm saying this is for installing on a Windows 7 computer is because the screen shots and the information that follows will be from Windows 7. The guide that I followed and linked above had instructions based on Windows XP.
Before you get started, you will need to download two pieces of software; the Java SDK and the Android SDK. Here are the links:
When I clicked the link to download Java, I struggled because there were so many choices. The following graphic shows the one I finally settled on:
The Android SDK supports Windows, Mac and Linux. In this case, I chose the Windows download:
Once your downloads are complete, you are ready for installation.
On your computer:
Extract the Google Android SDK to a folder on your desktop. I'd suggest making the folder in the root of your C: drive - C:\Android. After you unzip the files to C:\Android, it should look like this:
Install the the Java SE SDK by double-clicking "java_ee_sdk-5_08-jdk-6u20-windows.exe". I would install everything using the defaults. Java will be installed in a folder called "C:\Sun".
On the HTC EVO 4G:
- Press the Home icon, press Menu and then tap Settings
- Tap on Applications
- Tap on Development
- Check the box for USB debugging
Now you are ready to get started. Use Windows Explorer and navigate to C:\Android, the douple-click "SDK Setup.exe". That will bring up the Android SDK and AVD Manager.
Click the tab on the left that says "Available Packages", then click the + sign next to the repository link to see the following. Click the checkbox indicated by the top arrow, then click "Install Selected". That will install the whole SDK.
Next step:
- Connect your HTC EVO 4G to your computer's USB port. At this point do not mount the drive. Just leave it set on Charge only. See first option below. Windows will detect New Hardware.
- When Windows starts updating the driver, a prompt will ask how you want to search for the driver software. Select "Browse my computer for driver software."
- Click "Browse..." and Explore to C:\Android\usb_driver. Make sure "Include subfolders" is checked.
- Click "Next." Windows may prompt you to confirm the privilege elevation required for driver installation. Confirm it.
- When Windows asks if you'd like to install the Google ADB Interface device, click "Install" to install the driver.
This is one of the spots that didn't work for me. I got the message "Driver not found". That's because I have 64-bit Windows and none of the drivers that came with SDK worked. I didn't know what to do, but LatinP found some new signed, updated drives that did work with the EVO 4G. If you have the same problem, you can download the drivers here. After you download this file, unzip it's contents to a new folder C:\Android\usb_driver\vista drivers.
If you didn't get a good install on the USB driver, you'll have to go into the "Device Manager" on your PC to remove the device, then refresh the list to try installing the driver again.
If you get a good install, you will see "My HTC" as indicated by the arrow. If you didn't get a good install, under "Other devices" you will see "ADB" with the yellow "!" next to it, like I have here for PCI Simple CC circled in red. If this is your case, follow these steps:
- Make sure your EVO 4G is still connected to your computer's USB port.
- Right-click on "Computer" from your desktop or Windows Explorer, and select "Manage."
- Select "Device Manager" in the left pane of the Computer Management window.
- Locate and expand "ADB Interface" in the right pane.
- Right-click on "ADB" and select "Update Driver Software..."
- When Windows starts updating the driver, a prompt will ask how you want to search for the driver software. Select "Browse my computer for driver software."
- Click "Browse..." and explore to C:\Android\usb_driver. Make sure "Include subfolders" is checked.
- Click "Next." Windows may prompt you to confirm the privilege elevation required for driver installation. Confirm it.
- When Windows asks if you'd like to install the Google ADB Interface device, click "Install" to install the driver.
Once you get the USB driver installed properly, you have to set the correct PATH in the Windows Environment. This is another area where I had problems, but it's easy once you catch on. If you fail to follow this step the SDK will not work. Here's the steps:
- Click your Windows "Start Button", right-click on "Computer", then left-click on "Properties".
- In the left panel, click "Advanced system settings".
- Near the bottom of the Advance dialog box that appears, left-click "Environment Variables..."
- Click PATH as shown in the illustration
- Click the Edit button and carefully edit the paths and separate them with semi-colons. This is another area that was throwing me, because the path that the Java installation inserted was C:\Sun\SDK and that didn't work. It needs to be changed to "C:\Sun\SDK\jdk\bin;"
- Before you close the PATH editor, insert C:\Android\tools. Notice in the graphic there are no spaces in the path and each one is separated with a ";".
- Click OK to close the editor, and close the Advanced dialog
This completes the installation of the SDK. The next step is to unplug your phone and reboot your computer.
Now is a good time to mention that you probably shouldn't ever reboot your PC while your phone is plugged in. Some newer PC's can boot from a USB device, and will try to load Android to your PC if you do. As interesting as that sounds, it won't work, and could lead to problems.
To use SDK for screen capture:
- Make sure your EVO 4G is connected to your computer's USB port on Charge only.
- Now, Explorer to C:\Android\tools and drag DDMS.BAT to your desktop to create a shortcut to the Dalvik Debug Monitor.
- Double-click the DDMS.BAT on your desktop.
- The application will launch with a DOS command window and eventually a Windows based application.
- Before you can do a screen capture, you need to click the little phone icon highlighted in light blue that says HT05AHL013.
- Click Device/Screen capture... or use the CTRL-S key combo
- The capture now appears on your screen, but there is one final undocumented step
- It is recommended that you click on the Copy button and paste the screenshot into your image editor of choice (Microsoft Paint, Adobe Photoshop, etc) -- the reason for this is that there is a known bug that does not carry over the colors of the actual screenshot inside the capture utility.
Voila! You now have a stunning screenshot from the display on your HTC EVO 4G. Repeat steps 2-4 to generate more screenshots, or change screens on the phone and press the "Refresh" button when the screen capture is active.
Installing SDK is a step toward rooting your phone, but if you only want to do screen captures, you can save a lot of steps and a lot of trouble by using an Android app called "ShootMe". It takes about 2 minutes to install it and learn it. I didn't find out about it until after I struggled installing the Android SDK, but at least that's installed now too. As far as the quality of the screen shots, the ones from ShootMe are just as good as the ones using the SDK. The way ShootMe works, you click on the ShootMe app to start it, then go to the screen where you want to make a screen capture. All you have to do is shake the phone and it snaps the picture and saves it on your SD card in the ShootMe folder in the cards root. That makes it simple to share or e-mail shots of your Home screen or whatever.
Good luck!