Wednesday, October 19, 2011

How to set up Android gingerbread on Windows 7 (Part 1/2)

To be quite honest with you, I have seen several blogs guiding on how to set up Android SDK/JDK, but not seen something that works in one shot.

Let me try to write down for you, the steps I followed to set up Android on Windows 7.

Setting up your Virtual Machine

Android application programming can be done directly on Windows 7 or on a Linux virtual machine.
In this post I will be focusing on using the Linux virtual machine.

To begin with you need to download VMware Player from VMware or virtual box or any other virtualization environment. Here I will take VMware Player as an example.
Download VMware Player from here. You could also always look for the latest version available.
VMware might require you to register before you download. The download can take longer if your download speed is not great!

Once the download is done, you would need to install the VMware player. The set up is quite straight forward really.

Setting up Ubuntu Linux


The next step is downloading and setting up an ubuntu virtual player image. When you go to the ubuntu download page, there is a drop down box that says 32 bit (recommended). Please bear in mind that Android Native development (compiling Android native code) requires 64 bit ubuntu.
But if you do not wish to compile any of the Android JDK sources, then 32 bit is also fine.

The Ubuntu download can take around 3-4 hours if your download speeds are not great. So it is best to take this from friends who already download it or use high speed data link.
I'd recommend you to download a version that is 10.x or above.
What gets downloaded is a .iso file . You need to make a note of where it is downloaded.

Playing Ubuntu image


Now you need to go to Program Files and open VMware Player.
Once you open it  you would be presented with options to start a new virtual machine.
Select the option "Create a new virtual machine". This opens up a view to then select the ubuntu file. downloaded in the previous step. Also fill in a full name, password and other details in the form that follows.
This will essentially install ubuntu for you.

Coming up next...


Installing Sun JDK




Setting up Eclipse








No comments:

Post a Comment