SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Downloaden Sie, um offline zu lesen
ANDROID COURSE
WITH JAVA
Developed by Keroles Magdy
keroles.m.yacoub@gmail.com
2019 ©
Session topics :-
• Android OS.
• Android Versions.
• Android architecture.
• Tools & Setups.
• How to start ?.
• Why Android Studio ?.
• Android Application File Structure.
• App main components.
• Android hello World.
• What is XML.
• Define a view in XML & Java.
• Common Widgets.
• Layouts.
Android OS :-
• The system developed by Android Inc which Google bought in 2005.
• OHA, Open Handset Alliance a group of companies was formed 2007.
• Android was released in 2007, with the first commercial Android device (1.0) launched in
September 2008.
Android
1.5
Android
7.1
Android
4.0
Android
10
Android
5.0
Android Versions :-
Android OS :-
• 10 Years Challenge 2009 - 2019
Android architecture :-
Android architecture :-
• Linux kernel layer, drivers for hardware, networking, file system access and inter-
process-communication.
Android architecture :-
• Middleware layer, native libraries (written in C or C++)
Android architecture :-
• Application Framework layer
Android architecture :-
• Application layer
How to start ? :-
Why Android Studio ? :-
• The Android SDK tools compile your code and any resource files into an APK.
• Android Studio provides the fastest tools for building apps on every type of Android
device.
APK Analyzer Intelligent code editor
Why Android Studio ? :-
Realtime profilers
Android Application File Structure :-
App main components :-
• Each component is an entry point through which the system or a user can enter your
app. There are four different types of app components:
Activities
Services
Broadcast receivers
Content providers
Break
Android hello world :-
What is XML ? :-
• XML stands for Extensible Markup Language.
• XML is a markup language much like HTML designed to store and transport data with
focus on what data is.
• XML tags are not predefined like HTML tags.
<notification>
<date>2015-09-01</date>
<title>Wake Up</hour>
<content>Today I will go to
school</to>
</notification>
App main components :-
• Example :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello, I am a TextView" />
<Button android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello, I am a Button" />
</LinearLayout>
Define a view in XML & Java :-
• In XML :
<Button android:id="@+id/my_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/my_button_text"/>
• In Java:
Button myButton = (Button) findViewById(R.id.my_button);
Common Widgets :-
• TextView:
<TextView
android:id="@+id/simpleTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_margin="100dp"
android:gravity="center_horizontal"
android:padding="10dp"
android:text="Hello World!"
android:textColor="#f00"
android:background="#7C7575"
android:textSize="35sp"
android:textStyle="bold|italic" />
Common Widgets :-
• Button:
<Button
android:id="@+id/btnChangeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="#f00"
android:padding="10dp"
android:text="Change Text"
android:textColor="#fff"
android:textStyle="bold" />
Common Widgets :-
• ImageView :
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher_background"
android:layout_margin="10dp"/>
Common Widgets :-
• Switch :
<Switch
android:text="wifi "
android:textSize="24sp"
android:theme="@style/switchstyle"
android:gravity="start"
android:textColor="@android:color/white"
android:id="@+id/simpleSwitch"
android:layout_width="match_parent"
android:background="#6D7CFF"
android:textOn="on"
android:textOff="off"
android:layout_height="wrap_content"/>
Layouts :-
• Each element in the layout are built using a hierarchy of View and ViewGroup objects.
• A View in the android something that user can see and interact with.
• ViewGroup is an invisible container that defines the layout structure for View and other
ViewGroup objects, as shown in the following figure.
• The View usually called "widget" such as Button or TextView.
• The ViewGroup usually called "layout" such as LinearLayout.
ViewGroup
ViewGroup
View View View
View View
the End

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to Basic Concepts in Web
Introduction to Basic Concepts in WebIntroduction to Basic Concepts in Web
Introduction to Basic Concepts in Web
Jussi Pohjolainen
 
Animation And Testing In AngularJS
Animation And Testing In AngularJSAnimation And Testing In AngularJS
Animation And Testing In AngularJS
Edureka!
 

Was ist angesagt? (20)

Introduction to Basic Concepts in Web
Introduction to Basic Concepts in WebIntroduction to Basic Concepts in Web
Introduction to Basic Concepts in Web
 
Deep Dive into AngularJS Javascript Framework
Deep Dive into AngularJS Javascript FrameworkDeep Dive into AngularJS Javascript Framework
Deep Dive into AngularJS Javascript Framework
 
SD Forum Java SIG - Service Oriented UI Architecture
SD Forum Java SIG - Service Oriented UI ArchitectureSD Forum Java SIG - Service Oriented UI Architecture
SD Forum Java SIG - Service Oriented UI Architecture
 
Training report on web developing
Training report on web developingTraining report on web developing
Training report on web developing
 
Front End Development | Introduction
Front End Development | IntroductionFront End Development | Introduction
Front End Development | Introduction
 
Front end web development
Front end web developmentFront end web development
Front end web development
 
Web Development Presentation
Web Development PresentationWeb Development Presentation
Web Development Presentation
 
ppt of web development for diploma student
ppt of web development for diploma student ppt of web development for diploma student
ppt of web development for diploma student
 
Adobe.com Redesign: Powered by Day CQ5
Adobe.com Redesign: Powered by Day CQ5Adobe.com Redesign: Powered by Day CQ5
Adobe.com Redesign: Powered by Day CQ5
 
Build single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEMBuild single page applications using AngularJS on AEM
Build single page applications using AngularJS on AEM
 
online music store
online music storeonline music store
online music store
 
Adobe AIR. NativeProcess. FFMPEG. Awesome.
Adobe AIR. NativeProcess. FFMPEG. Awesome.Adobe AIR. NativeProcess. FFMPEG. Awesome.
Adobe AIR. NativeProcess. FFMPEG. Awesome.
 
Wordpress
WordpressWordpress
Wordpress
 
Getting Started With AngularJS
Getting Started With AngularJSGetting Started With AngularJS
Getting Started With AngularJS
 
Front-End Web Development
Front-End Web DevelopmentFront-End Web Development
Front-End Web Development
 
The road to professional web development
The road to professional web developmentThe road to professional web development
The road to professional web development
 
Animation And Testing In AngularJS
Animation And Testing In AngularJSAnimation And Testing In AngularJS
Animation And Testing In AngularJS
 
Internship Presentation 1 Web Developer
Internship Presentation 1 Web DeveloperInternship Presentation 1 Web Developer
Internship Presentation 1 Web Developer
 
Web design and development
Web design and developmentWeb design and development
Web design and development
 
171dreamweaver
171dreamweaver171dreamweaver
171dreamweaver
 

Ähnlich wie Android course session 6 ( intoduction to android)

Matteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break editionMatteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
DuckMa
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
Joe Jacob
 

Ähnlich wie Android course session 6 ( intoduction to android) (20)

Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Part 2 android application development 101
Part 2 android application development 101Part 2 android application development 101
Part 2 android application development 101
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app development
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Java
 
Android - Anroid Pproject
Android - Anroid PprojectAndroid - Anroid Pproject
Android - Anroid Pproject
 
Android development orientation for starters v2
Android development orientation for starters v2Android development orientation for starters v2
Android development orientation for starters v2
 
Android training in Tambaram
Android training in TambaramAndroid training in Tambaram
Android training in Tambaram
 
Getting started with android programming
Getting started with android programmingGetting started with android programming
Getting started with android programming
 
Android OS and its Features
Android OS and its FeaturesAndroid OS and its Features
Android OS and its Features
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
 
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break editionMatteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
 
Android Introduction
Android IntroductionAndroid Introduction
Android Introduction
 
Development Workshop on ET1, Android and Motorola RhoElements
Development Workshop on ET1, Android and Motorola RhoElementsDevelopment Workshop on ET1, Android and Motorola RhoElements
Development Workshop on ET1, Android and Motorola RhoElements
 
Android application development for TresmaxAsia
Android application development for TresmaxAsiaAndroid application development for TresmaxAsia
Android application development for TresmaxAsia
 
Best Android Frameworks For App Development In 2023.pdf
Best Android Frameworks For App Development In 2023.pdfBest Android Frameworks For App Development In 2023.pdf
Best Android Frameworks For App Development In 2023.pdf
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Lec005 android start_program
Lec005 android start_programLec005 android start_program
Lec005 android start_program
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
 
The future of web development write once, run everywhere with angular js an...
The future of web development   write once, run everywhere with angular js an...The future of web development   write once, run everywhere with angular js an...
The future of web development write once, run everywhere with angular js an...
 
The future of web development write once, run everywhere with angular.js and ...
The future of web development write once, run everywhere with angular.js and ...The future of web development write once, run everywhere with angular.js and ...
The future of web development write once, run everywhere with angular.js and ...
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

Android course session 6 ( intoduction to android)

  • 1. ANDROID COURSE WITH JAVA Developed by Keroles Magdy keroles.m.yacoub@gmail.com 2019 ©
  • 2. Session topics :- • Android OS. • Android Versions. • Android architecture. • Tools & Setups. • How to start ?. • Why Android Studio ?. • Android Application File Structure. • App main components. • Android hello World. • What is XML. • Define a view in XML & Java. • Common Widgets. • Layouts.
  • 3. Android OS :- • The system developed by Android Inc which Google bought in 2005. • OHA, Open Handset Alliance a group of companies was formed 2007. • Android was released in 2007, with the first commercial Android device (1.0) launched in September 2008. Android 1.5 Android 7.1 Android 4.0 Android 10 Android 5.0
  • 5. Android OS :- • 10 Years Challenge 2009 - 2019
  • 7. Android architecture :- • Linux kernel layer, drivers for hardware, networking, file system access and inter- process-communication.
  • 8. Android architecture :- • Middleware layer, native libraries (written in C or C++)
  • 9. Android architecture :- • Application Framework layer
  • 10. Android architecture :- • Application layer
  • 11. How to start ? :-
  • 12. Why Android Studio ? :- • The Android SDK tools compile your code and any resource files into an APK. • Android Studio provides the fastest tools for building apps on every type of Android device. APK Analyzer Intelligent code editor
  • 13. Why Android Studio ? :- Realtime profilers
  • 14. Android Application File Structure :-
  • 15. App main components :- • Each component is an entry point through which the system or a user can enter your app. There are four different types of app components: Activities Services Broadcast receivers Content providers
  • 16. Break
  • 18. What is XML ? :- • XML stands for Extensible Markup Language. • XML is a markup language much like HTML designed to store and transport data with focus on what data is. • XML tags are not predefined like HTML tags. <notification> <date>2015-09-01</date> <title>Wake Up</hour> <content>Today I will go to school</to> </notification>
  • 19. App main components :- • Example : <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello, I am a TextView" /> <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello, I am a Button" /> </LinearLayout>
  • 20. Define a view in XML & Java :- • In XML : <Button android:id="@+id/my_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/my_button_text"/> • In Java: Button myButton = (Button) findViewById(R.id.my_button);
  • 21. Common Widgets :- • TextView: <TextView android:id="@+id/simpleTextView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_margin="100dp" android:gravity="center_horizontal" android:padding="10dp" android:text="Hello World!" android:textColor="#f00" android:background="#7C7575" android:textSize="35sp" android:textStyle="bold|italic" />
  • 22. Common Widgets :- • Button: <Button android:id="@+id/btnChangeText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:background="#f00" android:padding="10dp" android:text="Change Text" android:textColor="#fff" android:textStyle="bold" />
  • 23. Common Widgets :- • ImageView : <ImageView android:id="@+id/imageView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_launcher_background" android:layout_margin="10dp"/>
  • 24. Common Widgets :- • Switch : <Switch android:text="wifi " android:textSize="24sp" android:theme="@style/switchstyle" android:gravity="start" android:textColor="@android:color/white" android:id="@+id/simpleSwitch" android:layout_width="match_parent" android:background="#6D7CFF" android:textOn="on" android:textOff="off" android:layout_height="wrap_content"/>
  • 25. Layouts :- • Each element in the layout are built using a hierarchy of View and ViewGroup objects. • A View in the android something that user can see and interact with. • ViewGroup is an invisible container that defines the layout structure for View and other ViewGroup objects, as shown in the following figure. • The View usually called "widget" such as Button or TextView. • The ViewGroup usually called "layout" such as LinearLayout. ViewGroup ViewGroup View View View View View