You are on page 1of 15

EMBEDDED SYSTEM TRAINING

8051/PIC/ARM/Embedded Linux/Embedded Android


IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

How to prepare
system
For Android SDK Emulator
(Android 3.1 for Windows 7 OS)

Part-1
Step by Step Tutorial

By:
IMBUENT TECHNOLOGIES PVT. LTD.
LUDHIANA, PUNJAB (INDIA)
www.imbuent.com
www.embeddedcraft.org

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Introduction:

Android is a software stack for mobile devices that includes an operating system, middleware and
key applications.[7][8] Google Inc. purchased the initial developer of the software, Android Inc., in
2005.[9] Android's mobile operating system is based on the Linux kernel. Google and other
members of the Open Handset Alliance collaborated on Android's development and release.[10][11]
The Android Open Source Project (AOSP) is tasked with the maintenance and further development
of Android.[12] The Android operating system is the world's best-selling Smartphone
platform.[13][14]

Android has a large community of developers writing applications ("apps") that extend the
functionality of the devices. There are currently over 200,000 apps available for Android.[15][16]
Android Market is the online app store run by Google, though apps can also be downloaded from
third-party sites. Developers write primarily in the Java language, controlling the device via
Google-developed Java libraries.[17]

Source: http://en.wikipedia.org/wiki/Android_(operating_system)
http://developer.android.com/sdk

Android SDK emulates an ARM CPU using QEMU

QEMU is a generic and open source machine emulator and virtualizer. When used as a machine
emulator, QEMU can run OSes and programs made for one machine (e.g. an ARM board) on a
different machine (e.g. your own PC). By using dynamic translation, it achieves very good
performance. When used as a virtualizer, QEMU achieves near native performances by executing
the guest code directly on the host CPU. QEMU supports virtualization when executing under the
Xen hypervisor or using the KVM kernel module in Linux. When using KVM, QEMU can
virtualize x86, server and embedded PowerPC, and S390 guests.

Source: http://wiki.qemu.org/Main_Page

Windows 7 OS:
Here I am using Windows 7 OS But you can use this tutorial for Windows XP as
Well ,there may be minor differences

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Before start working on Android SDK Emulator your system either PC or Laptop Should me fully
prepared with following software.

1. First, you need to download and install Java on your system.


2. Then Android SDK
3. Lastly Eclipse IDE For JAVA developers

Downloading above Software One by One:

Step 1: Go to Google and Type “Java SDK download”.

Stept 2: Click on the link and download any Java platfom.

Like Here we are using JDK + JavaFX Bundle.

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Step 3: Go to Google and Type “android SDK download”.

Step 4: Download the Android SDK.Then Download installer_r11_windows.exe

Step 5: Download Eclipse IDE. Go To Google Type “Eclipse Download”

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Step 6: Go to Link and Download . Eclipse IDE for Java Developers.

Ok, At this stages I think you have downloaded all of above. I have saved the in Folder Named
Android Setup.

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Installing Software one by one:

For JAVA JDK.

Step 1: Click of jdk setup and Installed that tools by Click Next Next (Set Path) Next.

Step 2: Click on Finish when installation finishes.

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Step 3: Go Start Menu--->> Computer -->> Properties

Step 4: Then Go to Advanced System Setting >> Environment Variables

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Step 5: Click on Environment Variable


Variable Name: PATH
Variable Value: C:\Program Files (x86)\Java\jdk1.6.0_25\bin

Note: Please check the version and path at your system for Java Jdk.

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Step 6: Now Go to Start >> Run >> Type “cmd” for command prompt.

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA
Step 7: Type javac and hit enter in command prompt you must see following command as per
below window then only JDK is perfectly installed.

For Android SDK.

Step 1 : Click on installer_r11_windows icon.

Step 2: Click Next Next (Set Path) Next then finish for installation.

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Step 3: Click Next then Finish

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Step 4: Go start then Click on SDK Manager as below windows

Step 4: Since, No package is installed

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Step 5: If no package is installed then it will ask to choose packages, If not so then Click on
Available package and chose the latest one as below:

Step 6: Like I have selected Android 3.1 and Android 3.0 and also sample code for that

Step 7: Click on Accept the install. . Here you can take refreshment or go to sleep if your internet is

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA
so slow.

Caution: Most of People (Even I) have found problems while download. Sometimes
downloading may halt in between. So, What to do, Go to Control Panel -> Uninstalled Android
and Start from Step 1 (For Android SDK.)

Step 8: At Step 4. You see Installed packages folder is empty. But now you can SDK Platform 3.1
is installed.

www.embeddedcraft.org
EMBEDDED SYSTEM TRAINING
8051/PIC/ARM/Embedded Linux/Embedded Android
IMBUENT TECHNOLOGIES PVT. LTD., LUDHIANA, PUNJAB, INDIA

Close the Windows.Now, your Android SDK is ready for work.

-----------In next part you will see how to Setup Eclipse that can work with Android.-----------------

www.embeddedcraft.org

You might also like