SlideShare a Scribd company logo
Android Application Development
Workshop

Day 1
Borhan Otour
Hello World , this is Android 
Agenda
What we will cover today
•The Android System and the Android SDK
• Preparing for the party (Android Installation)
•Building the first Application
1.
2.
3.
4.

Create a new Android project (project structure)
Launch the Android Application (AVDs)
Create a simple view (Views and Resource systems)
Connecting to another activity (Intent system)
The Android System Architecture
The Android Market and Activations
By 2013 , there were

Android Device Activated.
SO THERE IS A LOT OF PEOPLE WHO NEEDS
APPS FROM YOU.
The Installation
•What do you need to prepare the development environment?
1. The Android SDK
2. An editor to code your project or The Integrated
Development Environment (Eclipse IDE)
3. Connect the IDE and the SDK to begin developing for the
Android market  (Android developer tool ADT)
• ( SDK + Eclipse )* ADT = My Android Development Environment
• Remember:
SDK = Android development tools + Android application framework
Building the first application (AVDs)
•The Android Virtual Device (The Emulator)

Note: The API levels (The SDK versions)
The project structure
What is important are two
main directories and an xml
file :
1. src/
2. res/
3. AndroidManifest.xml
Android Application development
(create a simple layout)
The activity:
the most important Android application component.
It’s a java class that represent a Screen.
Each application must contain one screen .

This is an Activity
Note: The activity is not a layout
Android Application development
(create a simple layout) .cont
The view:
The view is the fundamental component you see in the
“screen” that is used to build layouts.
The views can be containers or a widgets.
Android Application development
(create a simple layout) .cont
•The layout is composed of a hierarchy of views

•You can assign a view to an activity by using the
following instruction
- setContentView(View view|ViewId);
Android Application development
(create a simple layout) .cont
• The layouts in Android application follows a
hierarchical manner , and the best way to represents
hierarchies in the code is to use XML. (see the next slide)
• To reach a layout resource (like a button)in the code, I
need to (1) assign an ID to that resource :
@+id/identifier , (2) in the code I can reach the layout
resource using the
findViewById(R.id. identifier) Activity method
• Note: More about resources and layout will be
covered in Day 2 in the workshop.
The activity_main.xml file that represents the layout of the MainActivity.java
Interconnection between activities
(The Intent system)
Activity 1

Activity 2

• When you want to launch a new Activity from the current Activity
you need to use Intents.
• The Intent represents the Application Intention to do something,
which is (launching a new “Screen”) .
• You specifies the current Activity and the name of the Destination
Activity in the construction of intent object.
Intent intent = new Intent(this , destinationActivityName.class)
• You can put extra content in the message that you send to launch a
new Activity.
Intent.putExtras( String key , value);
Interconnection between activities
(The Intent system) .cont
• To launch the new Activity from the current activity use the
Activity method:
startActivity(Intent intent)
• To get the Intent object that caused the activity to be launched:
In the destination Activity , use the activity method:
getIntent()
• To extract the extra data from the intent based of the type of data
( like String data for instance ) : intent.getStringExtras(String key)
References
•http://developer.android.com/index.html
•The API documentation
http://developer.android.com/reference/packages.html

• Building the first application
http://developer.android.com/training/basics/firstapp/index
.html

More Related Content

PDF
Android Development
PDF
Android application development
PPTX
Application Development - Overview on Android OS
PPTX
Android Application Fundamentals
PDF
Five android architecture
PPTX
Android architecture
PDF
Ui layout (incomplete)
PPT
Android application development for TresmaxAsia
Android Development
Android application development
Application Development - Overview on Android OS
Android Application Fundamentals
Five android architecture
Android architecture
Ui layout (incomplete)
Android application development for TresmaxAsia

What's hot (20)

PDF
Android tutorial
PPTX
Android application-component
PPTX
Get an Android tutorial for beginners
PPT
Android studio 2.0: default project structure
PDF
Training android
PPTX
Android Development Made Easy - With Sample Project
DOCX
Android xml-based layouts-chapter5
PDF
Android Basic Components
PPT
Android Anatomy
PPTX
Android apps development
ODP
Ppt 2 android_basics
PDF
Android - From Zero to Hero @ DEVit 2017
PPTX
Android components
PDF
Android UI Fundamentals part 1
PPT
Android development orientation for starters v4 seminar
PPT
Introduction to android
PPT
Android tutorial
PPT
Android tutorial
PPT
Android tutorial
PDF
Android dev o_auth
Android tutorial
Android application-component
Get an Android tutorial for beginners
Android studio 2.0: default project structure
Training android
Android Development Made Easy - With Sample Project
Android xml-based layouts-chapter5
Android Basic Components
Android Anatomy
Android apps development
Ppt 2 android_basics
Android - From Zero to Hero @ DEVit 2017
Android components
Android UI Fundamentals part 1
Android development orientation for starters v4 seminar
Introduction to android
Android tutorial
Android tutorial
Android tutorial
Android dev o_auth
Ad

Similar to Android application development workshop day1 (20)

PDF
Android application development workshop day1
PPT
Day: 2 Environment Setup for Android Application Development
PDF
ANDROID PPT 1.pdf
PDF
Android session 1
ODP
Java Meetup - 12-03-15 - Android Development Workshop
PPT
Day 3: Getting Active Through Activities
PPT
Day 3: Getting Active Through Activities
PDF
Introduction to Andriod Studio Lecture note: Android Development Lecture 1.pdf
PDF
Android dev o_auth
PDF
Lecture 2(b) Android Internals A Quick Overview
PPT
Android
PPTX
Mobile application development
PPTX
Android OS & SDK - Getting Started
PPTX
Notes Unit3.pptx
PPTX
Session 2 prepare android development environment
PDF
Android Basic- CMC
PPTX
How to create android applications
PPTX
Mobile Application Slide Chapter 2 - Make First App
PPT
PPTX
Introduction To Android For Beginners.
Android application development workshop day1
Day: 2 Environment Setup for Android Application Development
ANDROID PPT 1.pdf
Android session 1
Java Meetup - 12-03-15 - Android Development Workshop
Day 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
Introduction to Andriod Studio Lecture note: Android Development Lecture 1.pdf
Android dev o_auth
Lecture 2(b) Android Internals A Quick Overview
Android
Mobile application development
Android OS & SDK - Getting Started
Notes Unit3.pptx
Session 2 prepare android development environment
Android Basic- CMC
How to create android applications
Mobile Application Slide Chapter 2 - Make First App
Introduction To Android For Beginners.
Ad

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Modernizing your data center with Dell and AMD
PDF
Network Security Unit 5.pdf for BCA BBA.
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Cloud computing and distributed systems.
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Machine learning based COVID-19 study performance prediction
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Digital-Transformation-Roadmap-for-Companies.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Agricultural_Statistics_at_a_Glance_2022_0.pdf
cuic standard and advanced reporting.pdf
Big Data Technologies - Introduction.pptx
NewMind AI Monthly Chronicles - July 2025
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Spectral efficient network and resource selection model in 5G networks
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Modernizing your data center with Dell and AMD
Network Security Unit 5.pdf for BCA BBA.
The AUB Centre for AI in Media Proposal.docx
Cloud computing and distributed systems.
Advanced methodologies resolving dimensionality complications for autism neur...
Machine learning based COVID-19 study performance prediction

Android application development workshop day1

  • 2. Hello World , this is Android 
  • 3. Agenda What we will cover today •The Android System and the Android SDK • Preparing for the party (Android Installation) •Building the first Application 1. 2. 3. 4. Create a new Android project (project structure) Launch the Android Application (AVDs) Create a simple view (Views and Resource systems) Connecting to another activity (Intent system)
  • 4. The Android System Architecture
  • 5. The Android Market and Activations By 2013 , there were Android Device Activated. SO THERE IS A LOT OF PEOPLE WHO NEEDS APPS FROM YOU.
  • 6. The Installation •What do you need to prepare the development environment? 1. The Android SDK 2. An editor to code your project or The Integrated Development Environment (Eclipse IDE) 3. Connect the IDE and the SDK to begin developing for the Android market  (Android developer tool ADT) • ( SDK + Eclipse )* ADT = My Android Development Environment • Remember: SDK = Android development tools + Android application framework
  • 7. Building the first application (AVDs) •The Android Virtual Device (The Emulator) Note: The API levels (The SDK versions)
  • 8. The project structure What is important are two main directories and an xml file : 1. src/ 2. res/ 3. AndroidManifest.xml
  • 9. Android Application development (create a simple layout) The activity: the most important Android application component. It’s a java class that represent a Screen. Each application must contain one screen . This is an Activity Note: The activity is not a layout
  • 10. Android Application development (create a simple layout) .cont The view: The view is the fundamental component you see in the “screen” that is used to build layouts. The views can be containers or a widgets.
  • 11. Android Application development (create a simple layout) .cont •The layout is composed of a hierarchy of views •You can assign a view to an activity by using the following instruction - setContentView(View view|ViewId);
  • 12. Android Application development (create a simple layout) .cont • The layouts in Android application follows a hierarchical manner , and the best way to represents hierarchies in the code is to use XML. (see the next slide) • To reach a layout resource (like a button)in the code, I need to (1) assign an ID to that resource : @+id/identifier , (2) in the code I can reach the layout resource using the findViewById(R.id. identifier) Activity method • Note: More about resources and layout will be covered in Day 2 in the workshop.
  • 13. The activity_main.xml file that represents the layout of the MainActivity.java
  • 14. Interconnection between activities (The Intent system) Activity 1 Activity 2 • When you want to launch a new Activity from the current Activity you need to use Intents. • The Intent represents the Application Intention to do something, which is (launching a new “Screen”) . • You specifies the current Activity and the name of the Destination Activity in the construction of intent object. Intent intent = new Intent(this , destinationActivityName.class) • You can put extra content in the message that you send to launch a new Activity. Intent.putExtras( String key , value);
  • 15. Interconnection between activities (The Intent system) .cont • To launch the new Activity from the current activity use the Activity method: startActivity(Intent intent) • To get the Intent object that caused the activity to be launched: In the destination Activity , use the activity method: getIntent() • To extract the extra data from the intent based of the type of data ( like String data for instance ) : intent.getStringExtras(String key)
  • 16. References •http://developer.android.com/index.html •The API documentation http://developer.android.com/reference/packages.html • Building the first application http://developer.android.com/training/basics/firstapp/index .html