0% found this document useful (0 votes)
174 views10 pages

Android Tutorial Part - 3

This document provides step-by-step instructions for writing and testing a program on the Android SDK emulator for Windows 7. It describes downloading the Java JDK, Android SDK, and Eclipse, then creating an Android project in Eclipse. It explains how to configure and run an Android Virtual Device to deploy and test the program.

Uploaded by

Gurpreet Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views10 pages

Android Tutorial Part - 3

This document provides step-by-step instructions for writing and testing a program on the Android SDK emulator for Windows 7. It describes downloading the Java JDK, Android SDK, and Eclipse, then creating an Android project in Eclipse. It explains how to configure and run an Android Virtual Device to deploy and test the program.

Uploaded by

Gurpreet Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

EMBEDDED SYSTEM TRAINING

8051/PIC/ARM/Embedded Linux/Embedded Android


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

How to Write
And Test Program
On Android SDK Emulator
(Android 3.1 for Windows 7 OS)

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: In the Part -1 of tutorial we have download and Configured JAVA JDK, Android
SDK and Eclipse. Now We Will See How to Use and Test Program on that.

Step 1: Open the Eclipse >> New >> Project

Step 2: Go to Android Project and Click Next

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

Step 3: Fill following Detail in New Android Project.

Project Name : IMBUENT


Select On Target Name Android 3.1
Type Package Name : com.imbuent.andorid.test
Create Activity : TestActivity
API : 12

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

Step 4: After Click on Finish on Step 4 you can view.


TestActivity.java . I have added three lines to Create on simple application.

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

Step 5: Click on icon as below and Open Android SDK and AVD Manager.

Step 6. Now you see, No Android Virtual Devices is Located. Click on New

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

Step 7. Add Name for IMBUENT_GURPREET


Target Type Scroll Down and Select. And Then Create AVD.

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

Step 8. After Clicking on Create AVD, Now you see IMBUENT_GURPREET Under AVD name
With target and API Detail. Now close that Windows.

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

Step 9. Go to Run and Run Configuration.

Step 10. Go to Android application >> Browse project (e.g IMBUENT)


Chose Launch Activity>> Then Apply >> Then Run.

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

Step 10: You must see pop window(s) with android logo. This is same as Virtual Mobile
having Android OS.It may take 2-3 mintues at First time.

Step 11. Unlock the keyboard, As you same did in Moblie Phone.

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

Step 12: Congrats... you will automatically see following on Android SDK Screen.Enjoy..

Thanks for viewing That….


?? Facing Any Problem ??

[email protected] , [email protected]
www.embeddedcraft.org/android
(Updated after 15-June-2011)
Next, Tutorial How to Install and Use Android NDK

www.embeddedcraft.org

You might also like