SlideShare a Scribd company logo
Android Application
Development with Java
Prepared By:
Sandeep Londhe
http://www.about.me/sandeeplondhe54
Overview
 What is Android?
 Why teach Android?
 What do you need in order to teach Android?
 Hello, Android
 Basic Android graphics
 Lunch
 Part 2: More Android!
What is Android?
What is Android?
 An open source Linux-based operating system
intended for mobile computing platforms
 Includes a Java API for developing applications
 It is not a device or product
Introduction To Android For Beginners.
Why teach Android?
Engaging Students with Android
 Android has a lot of “buzz” now
– Newness
– Coolness
– Googleness
 UI and graphics made simple(r)
 Advanced Java skills
What Skills Will Students Learn?
 Reinforce the basics: OOP, decomposition, etc.
 Separation of UI design and functionality
 XML and resource files
 Events and Listeners
 Callback methods
 Threads
Android vs. iPhone
 Java vs. Objective-C
 Direct install vs. Marketplace vs. App Store
 Open source?
What do you need in order
to teach Android?
What Should Students Already Know?
 Java!
– inheritance, method overriding
– interfaces, casting
– exceptions
– debugging
– reading API documentation
 Eclipse
– easy to pick up quickly, though
Do I Need Phones?
 The emulator that is part of the Android toolset for
Eclipse is quite good (though a bit slow)
 You may be able to get free “developer phones”
from Google
Online Resources
 developer.android.com
 code.google.com/p/apps-for-android/
 stackoverflow.com
 videos from Google I/O conferences
“Hello, Android”
Creating Your First(?) Android App
1. Set up your development environment
2. Create a new Android project in Eclipse
3. Run it in the emulator
4. Hilarity ensues
1. Set Up Your Android Environment
 http://developer.android.com/sdk
 Install Eclipse
 Install Android SDK (Android libraries)
 Install ADT plugin (Android development tools)
 Create AVD (Android virtual device)
 We’ve already done this for you!!
2. Create an Android Project in Eclipse
 File → New → Project
 Select “Android Project”
 Fill in Project details...
Name that appears
on device
Directory
name
Class to
automatically
create
Java package
Android
version
3. Run the Android Application
 Run → Run (or click the “Run” button)
 Select “Android Application”
 The emulator may take a few minutes to start, so
be patient!
 You don't need to restart the emulator when you
have a new version of your application
Introduction To Android For Beginners.
Source
code
Auto-generated
code
UI
layout
String
constants
Configuration
1 public class HelloAndroid extends Activity {
2 /** Called when the activity is first created. */
3 @Override
4 public void onCreate(Bundle savedInstanceState)
5 {
6 super.onCreate(savedInstanceState);
7 setContentView(R.layout.main);
8 }
9 }
HelloAndroid.java
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout
3 xmlns:android="http://schemas.android.com/apk/res/android"
4 android:orientation="vertical"
5 android:layout_width="fill_parent"
6 android:layout_height="fill_parent"
7 >
8 <TextView
9 android:layout_width="fill_parent"
10 android:layout_height="wrap_content"
11 android:text="@string/hello "
12 />
13 </LinearLayout>
main.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <resources>
3 <string name="hello">Hello World, HelloAndroid!
4 </string>
5 <string name="app_name">Hello, Android</string>
6 </resources>
strings.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <manifest
3 xmlns:android="http://schemas.android.com/apk/res/android"
4 package=“com.hello.android"
5 android:versionCode="1"
6 android:versionName="1.0">
7 <application android:icon="@drawable/icon"
8 android:label="@string/app_name">
9 <activity android:name=".HelloAndroid"
10 android:label="@string/app_name">
11 <intent-filter>
12 <action
13 android:name="android.intent.action.MAIN" />
14 <category
15 android:name="android.intent.category.LAUNCHER"/>
16 </intent-filter>
17 </activity>
18 </application>
19 </manifest>
AndroidManifest.xml
Ad

Recommended

Android - Getting started with Android
Android - Getting started with Android
Vibrant Technologies & Computers
 
Cs4hs android-01hello
Cs4hs android-01hello
Gowtham Decker
 
Android
Android
Akhilesh Saini
 
Synapseindia android apps application
Synapseindia android apps application
Synapseindiappsdevelopment
 
Android study jams
Android study jams
GDSCIIITR
 
Android study jams 1
Android study jams 1
NancyMariaAS
 
Android development training
Android development training
maheswarimahi18
 
Selenium web driver_2.0_presentation
Selenium web driver_2.0_presentation
sayhi2sudarshan
 
Android Training Institute - Dream Tech Labs
Android Training Institute - Dream Tech Labs
Dreamtech Labs
 
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Svetlin Nakov
 
Android Development Training
Android Development Training
chandutata
 
Android AppDevelopment
Android AppDevelopment
Ashraf Ali
 
Windows 8 App Development
Windows 8 App Development
Amal Dev
 
Android app Development Prepration Tips
Android app Development Prepration Tips
Yasmeen Sheikh
 
I Phone Development Presentation
I Phone Development Presentation
Aessam
 
Android Study Jams - Induction
Android Study Jams - Induction
GDSCAISSMSIOIT
 
BHAGWANT UNIVERSITY
BHAGWANT UNIVERSITY
Suraj Singh
 
Ppt of tutorial android app
Ppt of tutorial android app
Dharmendra Saini
 
Useful android developer tools to get associated with
Useful android developer tools to get associated with
iMOBDEV Technologies Pvt. Ltd.
 
Introduction to Android Development: Before Getting Started
Introduction to Android Development: Before Getting Started
Ahsanul Karim
 
Android course
Android course
baluja
 
Day 1 Android: Before Getting Started
Day 1 Android: Before Getting Started
Ahsanul Karim
 
Simple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test Application
Aritra Mukherjee
 
I os 101:basic training rajan
I os 101:basic training rajan
Prawesh Shrestha
 
Asj session 2 - kirthik
Asj session 2 - kirthik
19TUIT038KAVIARASUM
 
Flutter dhaval solanki
Flutter dhaval solanki
Dhaval Solanki
 
StackLabs-DataDriven Labs - iPhone App Development Training in Mohali
StackLabs-DataDriven Labs - iPhone App Development Training in Mohali
Arcadian Learning
 
Gdsc kick off
Gdsc kick off
GDSCAISSMSIOIT
 
Android Application Development
Android Application Development
Benny Skogberg
 
Intro to Mobile Game Development
Intro to Mobile Game Development
Shahed Chowdhuri
 

More Related Content

What's hot (20)

Android Training Institute - Dream Tech Labs
Android Training Institute - Dream Tech Labs
Dreamtech Labs
 
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Svetlin Nakov
 
Android Development Training
Android Development Training
chandutata
 
Android AppDevelopment
Android AppDevelopment
Ashraf Ali
 
Windows 8 App Development
Windows 8 App Development
Amal Dev
 
Android app Development Prepration Tips
Android app Development Prepration Tips
Yasmeen Sheikh
 
I Phone Development Presentation
I Phone Development Presentation
Aessam
 
Android Study Jams - Induction
Android Study Jams - Induction
GDSCAISSMSIOIT
 
BHAGWANT UNIVERSITY
BHAGWANT UNIVERSITY
Suraj Singh
 
Ppt of tutorial android app
Ppt of tutorial android app
Dharmendra Saini
 
Useful android developer tools to get associated with
Useful android developer tools to get associated with
iMOBDEV Technologies Pvt. Ltd.
 
Introduction to Android Development: Before Getting Started
Introduction to Android Development: Before Getting Started
Ahsanul Karim
 
Android course
Android course
baluja
 
Day 1 Android: Before Getting Started
Day 1 Android: Before Getting Started
Ahsanul Karim
 
Simple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test Application
Aritra Mukherjee
 
I os 101:basic training rajan
I os 101:basic training rajan
Prawesh Shrestha
 
Asj session 2 - kirthik
Asj session 2 - kirthik
19TUIT038KAVIARASUM
 
Flutter dhaval solanki
Flutter dhaval solanki
Dhaval Solanki
 
StackLabs-DataDriven Labs - iPhone App Development Training in Mohali
StackLabs-DataDriven Labs - iPhone App Development Training in Mohali
Arcadian Learning
 
Gdsc kick off
Gdsc kick off
GDSCAISSMSIOIT
 
Android Training Institute - Dream Tech Labs
Android Training Institute - Dream Tech Labs
Dreamtech Labs
 
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Svetlin Nakov
 
Android Development Training
Android Development Training
chandutata
 
Android AppDevelopment
Android AppDevelopment
Ashraf Ali
 
Windows 8 App Development
Windows 8 App Development
Amal Dev
 
Android app Development Prepration Tips
Android app Development Prepration Tips
Yasmeen Sheikh
 
I Phone Development Presentation
I Phone Development Presentation
Aessam
 
Android Study Jams - Induction
Android Study Jams - Induction
GDSCAISSMSIOIT
 
BHAGWANT UNIVERSITY
BHAGWANT UNIVERSITY
Suraj Singh
 
Ppt of tutorial android app
Ppt of tutorial android app
Dharmendra Saini
 
Useful android developer tools to get associated with
Useful android developer tools to get associated with
iMOBDEV Technologies Pvt. Ltd.
 
Introduction to Android Development: Before Getting Started
Introduction to Android Development: Before Getting Started
Ahsanul Karim
 
Android course
Android course
baluja
 
Day 1 Android: Before Getting Started
Day 1 Android: Before Getting Started
Ahsanul Karim
 
Simple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test Application
Aritra Mukherjee
 
I os 101:basic training rajan
I os 101:basic training rajan
Prawesh Shrestha
 
Flutter dhaval solanki
Flutter dhaval solanki
Dhaval Solanki
 
StackLabs-DataDriven Labs - iPhone App Development Training in Mohali
StackLabs-DataDriven Labs - iPhone App Development Training in Mohali
Arcadian Learning
 

Viewers also liked (18)

Android Application Development
Android Application Development
Benny Skogberg
 
Intro to Mobile Game Development
Intro to Mobile Game Development
Shahed Chowdhuri
 
Introduction to Java ME Mobile Development
Introduction to Java ME Mobile Development
Prof. Erwin Globio
 
Introduction to Mobile Development
Introduction to Mobile Development
Pragnesh Vaghela
 
Synfig
Synfig
jankimodi
 
Finite automata intro
Finite automata intro
lavishka_anuj
 
Animation Basics
Animation Basics
Chevonnese Chevers Whyte, MBA, B.Sc.
 
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Farwa Ansari
 
Android Application Development Using Java
Android Application Development Using Java
amaankhan
 
Theory of Automata
Theory of Automata
Farooq Mian
 
Introduction to fa and dfa
Introduction to fa and dfa
deepinderbedi
 
Introduction To Mobile Application Development
Introduction To Mobile Application Development
Syed Absar
 
Mobile Application Development With Android
Mobile Application Development With Android
guest213e237
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application Development
Ahsanul Karim
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)
Ahsanul Karim
 
Mobile Application Development
Mobile Application Development
jini james
 
Android ppt
Android ppt
Ansh Singh
 
Android Application Development
Android Application Development
Benny Skogberg
 
Android Application Development
Android Application Development
Benny Skogberg
 
Intro to Mobile Game Development
Intro to Mobile Game Development
Shahed Chowdhuri
 
Introduction to Java ME Mobile Development
Introduction to Java ME Mobile Development
Prof. Erwin Globio
 
Introduction to Mobile Development
Introduction to Mobile Development
Pragnesh Vaghela
 
Finite automata intro
Finite automata intro
lavishka_anuj
 
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Farwa Ansari
 
Android Application Development Using Java
Android Application Development Using Java
amaankhan
 
Theory of Automata
Theory of Automata
Farooq Mian
 
Introduction to fa and dfa
Introduction to fa and dfa
deepinderbedi
 
Introduction To Mobile Application Development
Introduction To Mobile Application Development
Syed Absar
 
Mobile Application Development With Android
Mobile Application Development With Android
guest213e237
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application Development
Ahsanul Karim
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)
Ahsanul Karim
 
Mobile Application Development
Mobile Application Development
jini james
 
Android Application Development
Android Application Development
Benny Skogberg
 
Ad

Similar to Introduction To Android For Beginners. (20)

androidPramming.ppt
androidPramming.ppt
BijayKc16
 
android Programming with detail slide an
android Programming with detail slide an
HAIDRIVE
 
Android
Android
BVP GTUG
 
Android application development
Android application development
slidesuren
 
this is PPT for mobail application development
this is PPT for mobail application development
swapnildhage339
 
Notes Unit2.pptx
Notes Unit2.pptx
MIT Autonomous Aurangabad
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptx
lancelotlaytan1996
 
AN IDE FOR ANDROID MOBILE PHONES WITH EXTENDED FUNCTIONALITIES USING BEST DEV...
AN IDE FOR ANDROID MOBILE PHONES WITH EXTENDED FUNCTIONALITIES USING BEST DEV...
IJCNCJournal
 
Ii 1300-java essentials for android
Ii 1300-java essentials for android
Adrian Mikeliunas
 
ANDROID PPT 1.pdf
ANDROID PPT 1.pdf
Siva Krishna Prasad
 
Android programming-basics
Android programming-basics
Aravindharamanan S
 
Android tutorial1
Android tutorial1
Милош Божовић
 
Internship presentation
Internship presentation
Prativa Neupane
 
report A K Maurya.pdf
report A K Maurya.pdf
Sonu62614
 
Android Basic
Android Basic
shwetadahatonde
 
Getting Started with Android Studio: A Step-by-Step Guide
Getting Started with Android Studio: A Step-by-Step Guide
Naresh IT
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
Abdul Basit
 
Seminar on android app development
Seminar on android app development
AbhishekKumar4779
 
Os eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdf
weerabahu
 
Android deep dive
Android deep dive
AnuSahniNCI
 
androidPramming.ppt
androidPramming.ppt
BijayKc16
 
android Programming with detail slide an
android Programming with detail slide an
HAIDRIVE
 
Android application development
Android application development
slidesuren
 
this is PPT for mobail application development
this is PPT for mobail application development
swapnildhage339
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptx
lancelotlaytan1996
 
AN IDE FOR ANDROID MOBILE PHONES WITH EXTENDED FUNCTIONALITIES USING BEST DEV...
AN IDE FOR ANDROID MOBILE PHONES WITH EXTENDED FUNCTIONALITIES USING BEST DEV...
IJCNCJournal
 
Ii 1300-java essentials for android
Ii 1300-java essentials for android
Adrian Mikeliunas
 
report A K Maurya.pdf
report A K Maurya.pdf
Sonu62614
 
Getting Started with Android Studio: A Step-by-Step Guide
Getting Started with Android Studio: A Step-by-Step Guide
Naresh IT
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
Abdul Basit
 
Seminar on android app development
Seminar on android app development
AbhishekKumar4779
 
Os eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdf
weerabahu
 
Android deep dive
Android deep dive
AnuSahniNCI
 
Ad

Recently uploaded (20)

Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
IIT Kharagpur Quiz Club
 
Filipino 9 Maikling Kwento Ang Ama Panitikang Asiyano
Filipino 9 Maikling Kwento Ang Ama Panitikang Asiyano
sumadsadjelly121997
 
NSUMD_M1 Library Orientation_June 11, 2025.pptx
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
 
Values Education 10 Quarter 1 Module .pptx
Values Education 10 Quarter 1 Module .pptx
JBPafin
 
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
 
Code Profiling in Odoo 18 - Odoo 18 Slides
Code Profiling in Odoo 18 - Odoo 18 Slides
Celine George
 
The Man In The Back – Exceptional Delaware.pdf
The Man In The Back – Exceptional Delaware.pdf
dennisongomezk
 
Intellectual Property Right (Jurisprudence).pptx
Intellectual Property Right (Jurisprudence).pptx
Vishal Chanalia
 
Vitamin and Nutritional Deficiencies.pptx
Vitamin and Nutritional Deficiencies.pptx
Vishal Chanalia
 
K12 Tableau User Group virtual event June 18, 2025
K12 Tableau User Group virtual event June 18, 2025
dogden2
 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
 
Aprendendo Arquitetura Framework Salesforce - Dia 02
Aprendendo Arquitetura Framework Salesforce - Dia 02
Mauricio Alexandre Silva
 
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
LDMMIA Shop & Student News Summer Solstice 25
LDMMIA Shop & Student News Summer Solstice 25
LDM & Mia eStudios
 
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
IIT Kharagpur Quiz Club
 
Filipino 9 Maikling Kwento Ang Ama Panitikang Asiyano
Filipino 9 Maikling Kwento Ang Ama Panitikang Asiyano
sumadsadjelly121997
 
NSUMD_M1 Library Orientation_June 11, 2025.pptx
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
 
Values Education 10 Quarter 1 Module .pptx
Values Education 10 Quarter 1 Module .pptx
JBPafin
 
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
 
Code Profiling in Odoo 18 - Odoo 18 Slides
Code Profiling in Odoo 18 - Odoo 18 Slides
Celine George
 
The Man In The Back – Exceptional Delaware.pdf
The Man In The Back – Exceptional Delaware.pdf
dennisongomezk
 
Intellectual Property Right (Jurisprudence).pptx
Intellectual Property Right (Jurisprudence).pptx
Vishal Chanalia
 
Vitamin and Nutritional Deficiencies.pptx
Vitamin and Nutritional Deficiencies.pptx
Vishal Chanalia
 
K12 Tableau User Group virtual event June 18, 2025
K12 Tableau User Group virtual event June 18, 2025
dogden2
 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
 
Aprendendo Arquitetura Framework Salesforce - Dia 02
Aprendendo Arquitetura Framework Salesforce - Dia 02
Mauricio Alexandre Silva
 
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
LDMMIA Shop & Student News Summer Solstice 25
LDMMIA Shop & Student News Summer Solstice 25
LDM & Mia eStudios
 

Introduction To Android For Beginners.

  • 1. Android Application Development with Java Prepared By: Sandeep Londhe http://www.about.me/sandeeplondhe54
  • 2. Overview  What is Android?  Why teach Android?  What do you need in order to teach Android?  Hello, Android  Basic Android graphics  Lunch  Part 2: More Android!
  • 4. What is Android?  An open source Linux-based operating system intended for mobile computing platforms  Includes a Java API for developing applications  It is not a device or product
  • 7. Engaging Students with Android  Android has a lot of “buzz” now – Newness – Coolness – Googleness  UI and graphics made simple(r)  Advanced Java skills
  • 8. What Skills Will Students Learn?  Reinforce the basics: OOP, decomposition, etc.  Separation of UI design and functionality  XML and resource files  Events and Listeners  Callback methods  Threads
  • 9. Android vs. iPhone  Java vs. Objective-C  Direct install vs. Marketplace vs. App Store  Open source?
  • 10. What do you need in order to teach Android?
  • 11. What Should Students Already Know?  Java! – inheritance, method overriding – interfaces, casting – exceptions – debugging – reading API documentation  Eclipse – easy to pick up quickly, though
  • 12. Do I Need Phones?  The emulator that is part of the Android toolset for Eclipse is quite good (though a bit slow)  You may be able to get free “developer phones” from Google
  • 13. Online Resources  developer.android.com  code.google.com/p/apps-for-android/  stackoverflow.com  videos from Google I/O conferences
  • 15. Creating Your First(?) Android App 1. Set up your development environment 2. Create a new Android project in Eclipse 3. Run it in the emulator 4. Hilarity ensues
  • 16. 1. Set Up Your Android Environment  http://developer.android.com/sdk  Install Eclipse  Install Android SDK (Android libraries)  Install ADT plugin (Android development tools)  Create AVD (Android virtual device)  We’ve already done this for you!!
  • 17. 2. Create an Android Project in Eclipse  File → New → Project  Select “Android Project”  Fill in Project details...
  • 18. Name that appears on device Directory name Class to automatically create Java package Android version
  • 19. 3. Run the Android Application  Run → Run (or click the “Run” button)  Select “Android Application”  The emulator may take a few minutes to start, so be patient!  You don't need to restart the emulator when you have a new version of your application
  • 22. 1 public class HelloAndroid extends Activity { 2 /** Called when the activity is first created. */ 3 @Override 4 public void onCreate(Bundle savedInstanceState) 5 { 6 super.onCreate(savedInstanceState); 7 setContentView(R.layout.main); 8 } 9 } HelloAndroid.java
  • 23. 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 android:orientation="vertical" 5 android:layout_width="fill_parent" 6 android:layout_height="fill_parent" 7 > 8 <TextView 9 android:layout_width="fill_parent" 10 android:layout_height="wrap_content" 11 android:text="@string/hello " 12 /> 13 </LinearLayout> main.xml
  • 24. 1 <?xml version="1.0" encoding="utf-8"?> 2 <resources> 3 <string name="hello">Hello World, HelloAndroid! 4 </string> 5 <string name="app_name">Hello, Android</string> 6 </resources> strings.xml
  • 25. 1 <?xml version="1.0" encoding="utf-8"?> 2 <manifest 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 package=“com.hello.android" 5 android:versionCode="1" 6 android:versionName="1.0"> 7 <application android:icon="@drawable/icon" 8 android:label="@string/app_name"> 9 <activity android:name=".HelloAndroid" 10 android:label="@string/app_name"> 11 <intent-filter> 12 <action 13 android:name="android.intent.action.MAIN" /> 14 <category 15 android:name="android.intent.category.LAUNCHER"/> 16 </intent-filter> 17 </activity> 18 </application> 19 </manifest> AndroidManifest.xml