SlideShare a Scribd company logo
1 of 37
Android Introduction
Before we begin
In order to learn Android you must have some Basic knowledge Java.
Java: prerequisites for android development
 OOPS – Abstraction, Encapsulation, Polymorphism and Inheritance
 Tokens – Primitive data types, variables, constants, keywords such as
static, final, try, catch, etc.
 Type Casting and Visibility
 Arrays and Operators
 Control Statements
Before we begin
 Class Fundamentals – Inner and Anonymous Classes
 Inheritance, Interface, Package
 Multithreading and Exception Handling
 Java Annotations and IO
 Generics and Collections
Before we begin
Tools to use :
Android Studio
Android phone
Quiz Time  1/7
Sharing of common information is achieved by the concept of ?
a. polymorphism
b. encapsulation
c. inheritance
d. none of above
Quiz Time  2/7
Which constructs an anonymous inner class instance?
a. Runnable r = new Runnable() { };
b. Runnable r = new Runnable(public void run() { });
c. Runnable r = new Runnable { public void run(){}};
d. System.out.println(new Runnable() {public void run() { }});
Quiz Time  3/7
You want subclasses in any package to have access to members of a
superclass. Which is the most restrictive access that accomplishes this
objective?
a. public
b. private
c. protected
d. transient
Quiz Time  4/7
Which class can not be subclass in java ?
a. parent class
b. final class
c. abstract class
Quiz Time  5/7
Why are generics used?
a. Generics make code more fast.
b. Generics make code more optimised and readable.
c. Generics add stability to your code by making more of your bugs
detectable at compile time.
d. Generics add stability to your code by making more of your bugs
detectable at run time.
Quiz Time  6/7
Which of the following reference types cannot be generic?
a. Anonymous inner class
b. Interface
c. Inner class
d. All of the above
Quiz Time  7/7
public class Foo {
public static void main(String[] args) {
try { return; }
finally {
System.out.println( "Finally" );
}
}
}
What will be the output of the program?
a. An exception is thrown at runtime.
b. Compilation fails.
c. The code runs with no output.
d. Finally
History of Android
 Creation:
 Android, Inc. was founded in Palo Alto, California, United States in October 2003 by
Andy Rubin, Rich Miner, Nick Sears and Chris White
 Acquisition by Google:
 Google acquired Android Inc. in August 2005
 Open Handset Alliance (OHA)
 Android is then wholly developed by OHA with key employees Rubin, Rich and
Chris.
 In November 5, 2007, the OHA, a consortium of 84 firms has develop an open
standards for mobile devices.
 On the same day OHA also unveiled their first product, Android , a mobile device
platform built on the Linux Kernel version 2.6
Open Handset Alliance
History of Android Versions
 Android 1.0 – The Android Era officially began on October 22nd, 2008, when the T-
Mobile G1 launched in the United States
 Pull-down notification window
 Home screen widgets
 Deep, rich Gmail integration
 The Android Market
 Android 1.1 – It’s no coincidence that Danger’s Hiptop platform, which gave birth to the
sidekick, had been offering painless, phased over-the-air OS updates for years –
February 2009
 Dessert is Served – Android 1.5 “Cupcake” – In retrospect, it’s amazing to think that
Google could’ve shipped Android w/o any sort of soft keyboard. – July 2009
 On screen keyboard
 Clipboard improvements
 Video Capture and playbacks
History of Android Versions
 Android 1.6 Donut – Android 1.6 Donut was a far bigger deal than it’s “0.1”
increment would let on, perhaps none of the “Under The Hood” changes had a
more profound effect on the platform than resolution independence –
September 15, 2009
 Multiple screen resolution support
 Quick search box
 Android 2.0 / 2.1 Eclair – “BIG” would be an accurate description all around –
November 2009
 Multiple accounts support
 Google Maps Navigation
 Live Wallpapers
 Speech-to-text
 A new Lock Screen
History of Android Versions
 Android 2.2 Froyo – What did Google have to showcase in Froyo? Plenty – Mid
2010
 Redesigned home screen
 Android 2.3 Gingerbread – Google used the launch of Gingerbread as an
opportunity to gain some footing in the Mobile Gaming Market - December 2010
 More granular control over copy and paste
 Better battery and app management tools
 Support for front facing cameras
 Android 3.X Honeycomb – Honeycomb was, to say the least, and oddity –
divergence in Google’s Hard-Charging path towards smartphone dominance. –
February 2011
 The death of physical buttons
 Concept of action bar
History of Android Versions
 Android 4.0 Ice Cream Sandwich – ICS is, w/o question, the BIGGEST change for
Android in phones yet – October 2011
 Home screen improvements
 Android Beam (NFC Support)
 Face Unlock
 Data usage analysis
 New Calendar and Mail maps
 Android 4.1 Jelly Bean – After Honeycomb’s failure, a revamped tablet strategy –
July 2012
 Roboto refresh – Android’s signature font has been reworked
 Expandable, actionable notifications
 Widget flexibility
 Predictive text
History of Android Versions
 Android 4.2 Jelly Bean – Here comes the point updates – November 2012
 Redesigned clock app and clock widgets
 Multiple user profiles
 Photospheres – panoramic images
 Daydream screensavers
 Android 4.3 Jelly Bean – Designed with gaming and Nexus 7 in mind – July
2013
 Android 4.4 Kitkat – Refining android for Everyone – October 2013
 Kitkat is faster, more efficient and less resource intensive
History of Android Versions
 Android 5.0 Lollypop – Putting Android on every screen – November 12,
2014
 Material Design
 Improved Notifications – notification on lock screen
 Project Volta – Improved battery life
 Android everywhere – Android Wear, Android TV, Android Auto
Android Architecture
Linux Kernel
 Works as Hardware Access Layer (HAL)
 Device Drivers
 Memory Management
 Process Management
 Networking
 Security Settings
Libraries
 C/C++ libraries (Native libraries)
 Surface Manager
 Media Framework
 SQLite
 WebKit
 OpenGL
Android Runtime
 Dalvik Virtual Machine
 Developed by Dan Bornstein of Google
 .dex files
 Higher efficiency in low resource environments
 Multiple instances of VM
 Limited Memory and battery power
 Core Java Libraries
 java.*, javax.* - Basic java classes
 org.* - Internet/Web services
 android.* - App life cycle
 junit.* - Unit Testing
Application Framework
 Package Manager
 Window Manager
 Activity Manager
 Content Providers
 Telephony Manager
 Location Manager
 Resource Manager
 Notification Manager
Applications
 Built in user apps
 Apps from Android play store
Application Components
 Activity:
 Single screen with user interface
 IntentReceivers:
 Components that correspond to broadcast “Intents”
 Way to respond to external notification or alarms
 Intents:
 Think of Intents as a verb or object; a description of what you want done
e.g. VIEW, CALL, PLAY, etc.
 Activities and IntentReceivers describe what intents they can service
 Services:
 Faceless components that can run in background
e.g. music player, network download, live wallpaper, sync, etc.
Application Components
 ContentProviders:
 Enable sharing of data across applications:
e.g. address book, photo gallery
 Provides uniform APIs for querying, delete, update, insert
 Content is represented by URI and MIME type
Hello World Program
 Create Project with Android Studio
Hello World Program
 Select the minimum API level which your app supports.
Hello World Program
 Add an Activity
Hello World Program
 Configure your Activity
 Click Finish.
 Your project is created. Now run your project on real device or AVD.
Running our First Program on Real Device
 Plugin your device to machine using USB cable.
 Enable USB debugging on your device.
 Open one of your project files from Android Studio and click Run from
toolbar or press Shift+F10
 In the Run as Window that appears, select Android Application and click
OK.
 Android Studio installs the app on your device and starts it.
Running our First Program on the Emulator
 In Android Studio, click Android Virtual Device Manager from the
toolbar.
 In the AVD panel click Create Virtual Device.
 Select the Category and the phone model and click Next.
 In Select Image window, select system image and click Next.
 In Configure AVD window fill in the details for the AVD. Give it a name,
orientation, etc. then click Finish.
 Open one of your project files from Android Studio and click Run from
toolbar or press Shift+F10
 In the Run as Window that appears, select Android Application and click
OK.
Activity Life Cycle
Directory Structure of Android Studio Project
End of Lecture
Thank You!
Questions?

More Related Content

What's hot

Android application development
Android application developmentAndroid application development
Android application developmentSteve Smith
 
Introduction to Android - Mobile Portland
Introduction to Android - Mobile PortlandIntroduction to Android - Mobile Portland
Introduction to Android - Mobile Portlandsullis
 
Seminar Report on Android OS
Seminar Report on Android OSSeminar Report on Android OS
Seminar Report on Android OSBilal Mirza
 
Android versions
Android versionsAndroid versions
Android versionssriramakhil
 
Short notes of android
Short notes of androidShort notes of android
Short notes of androidMohamed Fathy
 
Android operating system
Android operating systemAndroid operating system
Android operating systemGurpreet Singh
 
Android development basic _ZuoSyuanWang
Android development basic _ZuoSyuanWangAndroid development basic _ZuoSyuanWang
Android development basic _ZuoSyuanWang佐軒 王
 
Research paper on "Android 4.1 Jellybean OS"
Research paper on "Android 4.1 Jellybean OS"Research paper on "Android 4.1 Jellybean OS"
Research paper on "Android 4.1 Jellybean OS"Bijaya Litigoner
 
Unit 3 introduction to android
Unit 3 introduction to android Unit 3 introduction to android
Unit 3 introduction to android Swapnali Pawar
 
Android operating system
Android operating systemAndroid operating system
Android operating systemAkshay Pandhare
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application DevelopmentRamesh Prasad
 
Android and android phones
Android and android phonesAndroid and android phones
Android and android phonesMerries Mapindan
 
Lesson 2 mobile application
Lesson 2 mobile applicationLesson 2 mobile application
Lesson 2 mobile applicationFelix Huerte
 

What's hot (20)

Android application development
Android application developmentAndroid application development
Android application development
 
Android
AndroidAndroid
Android
 
Introduction to Android - Mobile Portland
Introduction to Android - Mobile PortlandIntroduction to Android - Mobile Portland
Introduction to Android - Mobile Portland
 
Android By Vipin
Android By VipinAndroid By Vipin
Android By Vipin
 
Seminar Report on Android OS
Seminar Report on Android OSSeminar Report on Android OS
Seminar Report on Android OS
 
Introduction to Android Environment
Introduction to Android EnvironmentIntroduction to Android Environment
Introduction to Android Environment
 
Android
AndroidAndroid
Android
 
Android versions
Android versionsAndroid versions
Android versions
 
Short notes of android
Short notes of androidShort notes of android
Short notes of android
 
Android operating system
Android operating systemAndroid operating system
Android operating system
 
Android development basic _ZuoSyuanWang
Android development basic _ZuoSyuanWangAndroid development basic _ZuoSyuanWang
Android development basic _ZuoSyuanWang
 
Research paper on "Android 4.1 Jellybean OS"
Research paper on "Android 4.1 Jellybean OS"Research paper on "Android 4.1 Jellybean OS"
Research paper on "Android 4.1 Jellybean OS"
 
Unit 3 introduction to android
Unit 3 introduction to android Unit 3 introduction to android
Unit 3 introduction to android
 
Android operating system
Android operating systemAndroid operating system
Android operating system
 
Android 4.1 Jellybean OS
Android 4.1 Jellybean OSAndroid 4.1 Jellybean OS
Android 4.1 Jellybean OS
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
Android and android phones
Android and android phonesAndroid and android phones
Android and android phones
 
Android Report
Android ReportAndroid Report
Android Report
 
Lesson 2 mobile application
Lesson 2 mobile applicationLesson 2 mobile application
Lesson 2 mobile application
 

Similar to Introduction to Android (in-short) - Itvedant, Thane | Mumbai | Navi Mumbai

Introduction to android
Introduction to androidIntroduction to android
Introduction to androidzeelpatel0504
 
ANDROID MOBILE OPERATING SYSTEM
ANDROID MOBILE OPERATING SYSTEMANDROID MOBILE OPERATING SYSTEM
ANDROID MOBILE OPERATING SYSTEMpreeta sinha
 
Presentation on Android operating system
Presentation on Android operating systemPresentation on Android operating system
Presentation on Android operating systemSalma Begum
 
presentation2-141101015616-conversion-gate01.pdf
presentation2-141101015616-conversion-gate01.pdfpresentation2-141101015616-conversion-gate01.pdf
presentation2-141101015616-conversion-gate01.pdfimau6
 
Android development
Android developmentAndroid development
Android developmentAsif Larra
 
Android presantation
Android presantationAndroid presantation
Android presantationUdayJethva
 
Android Operating System
Android Operating SystemAndroid Operating System
Android Operating SystemBilal Mirza
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android dipali badgujar
 
Andriod (operating system)
Andriod (operating system)Andriod (operating system)
Andriod (operating system)sai praneeth
 
PRESENTATION ON ANDROID
PRESENTATION ON ANDROIDPRESENTATION ON ANDROID
PRESENTATION ON ANDROIDRajat Kumar
 
Android ! BATRA COMPUTER CENTRE
Android ! BATRA COMPUTER CENTREAndroid ! BATRA COMPUTER CENTRE
Android ! BATRA COMPUTER CENTREjatin batra
 

Similar to Introduction to Android (in-short) - Itvedant, Thane | Mumbai | Navi Mumbai (20)

Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
ANDROID MOBILE OPERATING SYSTEM
ANDROID MOBILE OPERATING SYSTEMANDROID MOBILE OPERATING SYSTEM
ANDROID MOBILE OPERATING SYSTEM
 
Presentation on Android operating system
Presentation on Android operating systemPresentation on Android operating system
Presentation on Android operating system
 
Android
AndroidAndroid
Android
 
presentation2-141101015616-conversion-gate01.pdf
presentation2-141101015616-conversion-gate01.pdfpresentation2-141101015616-conversion-gate01.pdf
presentation2-141101015616-conversion-gate01.pdf
 
Saminar ppt of
Saminar ppt ofSaminar ppt of
Saminar ppt of
 
Android development
Android developmentAndroid development
Android development
 
What is Android
What is Android What is Android
What is Android
 
Android
AndroidAndroid
Android
 
Android ppt
 Android ppt Android ppt
Android ppt
 
Basic android
Basic androidBasic android
Basic android
 
Android presantation
Android presantationAndroid presantation
Android presantation
 
Android Operating System
Android Operating SystemAndroid Operating System
Android Operating System
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android
 
Android 1
Android 1Android 1
Android 1
 
Android by LAlitha
Android by LAlithaAndroid by LAlitha
Android by LAlitha
 
Andriod (operating system)
Andriod (operating system)Andriod (operating system)
Andriod (operating system)
 
Android (1)
Android (1)Android (1)
Android (1)
 
PRESENTATION ON ANDROID
PRESENTATION ON ANDROIDPRESENTATION ON ANDROID
PRESENTATION ON ANDROID
 
Android ! BATRA COMPUTER CENTRE
Android ! BATRA COMPUTER CENTREAndroid ! BATRA COMPUTER CENTRE
Android ! BATRA COMPUTER CENTRE
 

Recently uploaded

Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 

Recently uploaded (20)

Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 

Introduction to Android (in-short) - Itvedant, Thane | Mumbai | Navi Mumbai

  • 1.
  • 3. Before we begin In order to learn Android you must have some Basic knowledge Java. Java: prerequisites for android development  OOPS – Abstraction, Encapsulation, Polymorphism and Inheritance  Tokens – Primitive data types, variables, constants, keywords such as static, final, try, catch, etc.  Type Casting and Visibility  Arrays and Operators  Control Statements
  • 4. Before we begin  Class Fundamentals – Inner and Anonymous Classes  Inheritance, Interface, Package  Multithreading and Exception Handling  Java Annotations and IO  Generics and Collections
  • 5. Before we begin Tools to use : Android Studio Android phone
  • 6. Quiz Time  1/7 Sharing of common information is achieved by the concept of ? a. polymorphism b. encapsulation c. inheritance d. none of above
  • 7. Quiz Time  2/7 Which constructs an anonymous inner class instance? a. Runnable r = new Runnable() { }; b. Runnable r = new Runnable(public void run() { }); c. Runnable r = new Runnable { public void run(){}}; d. System.out.println(new Runnable() {public void run() { }});
  • 8. Quiz Time  3/7 You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective? a. public b. private c. protected d. transient
  • 9. Quiz Time  4/7 Which class can not be subclass in java ? a. parent class b. final class c. abstract class
  • 10. Quiz Time  5/7 Why are generics used? a. Generics make code more fast. b. Generics make code more optimised and readable. c. Generics add stability to your code by making more of your bugs detectable at compile time. d. Generics add stability to your code by making more of your bugs detectable at run time.
  • 11. Quiz Time  6/7 Which of the following reference types cannot be generic? a. Anonymous inner class b. Interface c. Inner class d. All of the above
  • 12. Quiz Time  7/7 public class Foo { public static void main(String[] args) { try { return; } finally { System.out.println( "Finally" ); } } } What will be the output of the program? a. An exception is thrown at runtime. b. Compilation fails. c. The code runs with no output. d. Finally
  • 13. History of Android  Creation:  Android, Inc. was founded in Palo Alto, California, United States in October 2003 by Andy Rubin, Rich Miner, Nick Sears and Chris White  Acquisition by Google:  Google acquired Android Inc. in August 2005  Open Handset Alliance (OHA)  Android is then wholly developed by OHA with key employees Rubin, Rich and Chris.  In November 5, 2007, the OHA, a consortium of 84 firms has develop an open standards for mobile devices.  On the same day OHA also unveiled their first product, Android , a mobile device platform built on the Linux Kernel version 2.6
  • 15. History of Android Versions  Android 1.0 – The Android Era officially began on October 22nd, 2008, when the T- Mobile G1 launched in the United States  Pull-down notification window  Home screen widgets  Deep, rich Gmail integration  The Android Market  Android 1.1 – It’s no coincidence that Danger’s Hiptop platform, which gave birth to the sidekick, had been offering painless, phased over-the-air OS updates for years – February 2009  Dessert is Served – Android 1.5 “Cupcake” – In retrospect, it’s amazing to think that Google could’ve shipped Android w/o any sort of soft keyboard. – July 2009  On screen keyboard  Clipboard improvements  Video Capture and playbacks
  • 16. History of Android Versions  Android 1.6 Donut – Android 1.6 Donut was a far bigger deal than it’s “0.1” increment would let on, perhaps none of the “Under The Hood” changes had a more profound effect on the platform than resolution independence – September 15, 2009  Multiple screen resolution support  Quick search box  Android 2.0 / 2.1 Eclair – “BIG” would be an accurate description all around – November 2009  Multiple accounts support  Google Maps Navigation  Live Wallpapers  Speech-to-text  A new Lock Screen
  • 17. History of Android Versions  Android 2.2 Froyo – What did Google have to showcase in Froyo? Plenty – Mid 2010  Redesigned home screen  Android 2.3 Gingerbread – Google used the launch of Gingerbread as an opportunity to gain some footing in the Mobile Gaming Market - December 2010  More granular control over copy and paste  Better battery and app management tools  Support for front facing cameras  Android 3.X Honeycomb – Honeycomb was, to say the least, and oddity – divergence in Google’s Hard-Charging path towards smartphone dominance. – February 2011  The death of physical buttons  Concept of action bar
  • 18. History of Android Versions  Android 4.0 Ice Cream Sandwich – ICS is, w/o question, the BIGGEST change for Android in phones yet – October 2011  Home screen improvements  Android Beam (NFC Support)  Face Unlock  Data usage analysis  New Calendar and Mail maps  Android 4.1 Jelly Bean – After Honeycomb’s failure, a revamped tablet strategy – July 2012  Roboto refresh – Android’s signature font has been reworked  Expandable, actionable notifications  Widget flexibility  Predictive text
  • 19. History of Android Versions  Android 4.2 Jelly Bean – Here comes the point updates – November 2012  Redesigned clock app and clock widgets  Multiple user profiles  Photospheres – panoramic images  Daydream screensavers  Android 4.3 Jelly Bean – Designed with gaming and Nexus 7 in mind – July 2013  Android 4.4 Kitkat – Refining android for Everyone – October 2013  Kitkat is faster, more efficient and less resource intensive
  • 20. History of Android Versions  Android 5.0 Lollypop – Putting Android on every screen – November 12, 2014  Material Design  Improved Notifications – notification on lock screen  Project Volta – Improved battery life  Android everywhere – Android Wear, Android TV, Android Auto
  • 22. Linux Kernel  Works as Hardware Access Layer (HAL)  Device Drivers  Memory Management  Process Management  Networking  Security Settings
  • 23. Libraries  C/C++ libraries (Native libraries)  Surface Manager  Media Framework  SQLite  WebKit  OpenGL
  • 24. Android Runtime  Dalvik Virtual Machine  Developed by Dan Bornstein of Google  .dex files  Higher efficiency in low resource environments  Multiple instances of VM  Limited Memory and battery power  Core Java Libraries  java.*, javax.* - Basic java classes  org.* - Internet/Web services  android.* - App life cycle  junit.* - Unit Testing
  • 25. Application Framework  Package Manager  Window Manager  Activity Manager  Content Providers  Telephony Manager  Location Manager  Resource Manager  Notification Manager
  • 26. Applications  Built in user apps  Apps from Android play store
  • 27. Application Components  Activity:  Single screen with user interface  IntentReceivers:  Components that correspond to broadcast “Intents”  Way to respond to external notification or alarms  Intents:  Think of Intents as a verb or object; a description of what you want done e.g. VIEW, CALL, PLAY, etc.  Activities and IntentReceivers describe what intents they can service  Services:  Faceless components that can run in background e.g. music player, network download, live wallpaper, sync, etc.
  • 28. Application Components  ContentProviders:  Enable sharing of data across applications: e.g. address book, photo gallery  Provides uniform APIs for querying, delete, update, insert  Content is represented by URI and MIME type
  • 29. Hello World Program  Create Project with Android Studio
  • 30. Hello World Program  Select the minimum API level which your app supports.
  • 31. Hello World Program  Add an Activity
  • 32. Hello World Program  Configure your Activity  Click Finish.  Your project is created. Now run your project on real device or AVD.
  • 33. Running our First Program on Real Device  Plugin your device to machine using USB cable.  Enable USB debugging on your device.  Open one of your project files from Android Studio and click Run from toolbar or press Shift+F10  In the Run as Window that appears, select Android Application and click OK.  Android Studio installs the app on your device and starts it.
  • 34. Running our First Program on the Emulator  In Android Studio, click Android Virtual Device Manager from the toolbar.  In the AVD panel click Create Virtual Device.  Select the Category and the phone model and click Next.  In Select Image window, select system image and click Next.  In Configure AVD window fill in the details for the AVD. Give it a name, orientation, etc. then click Finish.  Open one of your project files from Android Studio and click Run from toolbar or press Shift+F10  In the Run as Window that appears, select Android Application and click OK.
  • 36. Directory Structure of Android Studio Project
  • 37. End of Lecture Thank You! Questions?