SlideShare a Scribd company logo
1 of 12
© Zühlke 2016
The ABC’s of Android: Learn Android
in 20 Minutes
ABC’s of Android 23 March 2018 Slide 1
© Zühlke 2016
So you know how to code
Assumptions:
• You know at least the basic concepts of programming
• You don’t mind a bit of Java / Kotlin every now and then
• You want to get to know Android, but don’t really know where to start
What the presentation assumes
ABC’s of Android 23 March 2018 Slide 2
© Zühlke 2016
What makes Android different
We know what a database is, we know what web pages are… but there are a few new
concepts that need to be grasped in Android as a system
ABC’s of Android 23 March 2018 Slide 3
Activities Broadcasts Content Providers Services
© Zühlke 2016
Activities
An activity provides the window in which the app draws its UI.
ABC’s of Android 23 March 2018 Slide 4
Activities
© Zühlke 2016
Activities
Project structure
ABC’s of Android 23 March 2018 Slide 5
Activities
© Zühlke 2016
Activities
Layout file
ABC’s of Android 23 March 2018 Slide 6
Activities
© Zühlke 2016
Activities
Manifest
ABC’s of Android 23 March 2018 Slide 7
Activities
© Zühlke 2016
Intents: Android glue
It is basically a passive data structure holding an abstract description of an
action to be performed
ABC’s of Android 23 March 2018 Slide 8
Activities
© Zühlke 2016
Activities: It’s a wonderful lifecycle
Always be aware that in Android your app can have different states
ABC’s of Android 23 March 2018 Slide 9
Activities
© Zühlke 2016
Broadcasts
Broadcasts can be used as a messaging system across apps
and outside of the normal user flow
ABC’s of Android 23 March 2018 Slide 10
Broadcasts
© Zühlke 2016
Content provider
A content provider manages access to a central repository of
data
ABC’s of Android 23 March 2018 Slide 11
© Zühlke 2016
Services
A Service is an application component that can perform long-
running operations in the background, and it does not provide
a user interface.
ABC’s of Android 23 March 2018 Slide 12
Services
Foreground Background Bound

More Related Content

What's hot

presentation
presentationpresentation
presentationwinnwang
 
GraphQL Summit 重點整理
GraphQL Summit 重點整理GraphQL Summit 重點整理
GraphQL Summit 重點整理Chen-Tsu Lin
 
Ophir cohen dashboard in google analytics v5
Ophir cohen   dashboard in google analytics v5Ophir cohen   dashboard in google analytics v5
Ophir cohen dashboard in google analytics v5Barry Schwartz
 
SMX Israel 2012 - Dashboard in Google Analytics
SMX Israel 2012 - Dashboard in Google AnalyticsSMX Israel 2012 - Dashboard in Google Analytics
SMX Israel 2012 - Dashboard in Google AnalyticsUM Digital Tel-Aviv
 
MikeTaulty_Silverlight3_DevDays_Part1
MikeTaulty_Silverlight3_DevDays_Part1MikeTaulty_Silverlight3_DevDays_Part1
MikeTaulty_Silverlight3_DevDays_Part1ukdpe
 
#AI + #Cloud = #DigitalTransformation
#AI + #Cloud = #DigitalTransformation#AI + #Cloud = #DigitalTransformation
#AI + #Cloud = #DigitalTransformationCraig Milroy
 
Autoscaling event driven apps
Autoscaling event driven appsAutoscaling event driven apps
Autoscaling event driven appsLibbySchulze
 
SUGBLR - Dependency injection in sitecore
SUGBLR - Dependency injection in sitecoreSUGBLR - Dependency injection in sitecore
SUGBLR - Dependency injection in sitecoreAnindita Bhattacharya
 
Build 2016 - B859 - The Future of Visual Studio
Build 2016 - B859 - The Future of Visual StudioBuild 2016 - B859 - The Future of Visual Studio
Build 2016 - B859 - The Future of Visual StudioWindows Developer
 

What's hot (12)

presentation
presentationpresentation
presentation
 
GraphQL Summit 重點整理
GraphQL Summit 重點整理GraphQL Summit 重點整理
GraphQL Summit 重點整理
 
Ophir cohen dashboard in google analytics v5
Ophir cohen   dashboard in google analytics v5Ophir cohen   dashboard in google analytics v5
Ophir cohen dashboard in google analytics v5
 
SMX Israel 2012 - Dashboard in Google Analytics
SMX Israel 2012 - Dashboard in Google AnalyticsSMX Israel 2012 - Dashboard in Google Analytics
SMX Israel 2012 - Dashboard in Google Analytics
 
MikeTaulty_Silverlight3_DevDays_Part1
MikeTaulty_Silverlight3_DevDays_Part1MikeTaulty_Silverlight3_DevDays_Part1
MikeTaulty_Silverlight3_DevDays_Part1
 
Recap NEXT 2017
Recap NEXT 2017Recap NEXT 2017
Recap NEXT 2017
 
#AI + #Cloud = #DigitalTransformation
#AI + #Cloud = #DigitalTransformation#AI + #Cloud = #DigitalTransformation
#AI + #Cloud = #DigitalTransformation
 
Predicting with GCP (Google Cloud Platform) by Giulia Bianchi, Data Scientist...
Predicting with GCP (Google Cloud Platform) by Giulia Bianchi, Data Scientist...Predicting with GCP (Google Cloud Platform) by Giulia Bianchi, Data Scientist...
Predicting with GCP (Google Cloud Platform) by Giulia Bianchi, Data Scientist...
 
30 days of google cloud 2021
30 days of google cloud 202130 days of google cloud 2021
30 days of google cloud 2021
 
Autoscaling event driven apps
Autoscaling event driven appsAutoscaling event driven apps
Autoscaling event driven apps
 
SUGBLR - Dependency injection in sitecore
SUGBLR - Dependency injection in sitecoreSUGBLR - Dependency injection in sitecore
SUGBLR - Dependency injection in sitecore
 
Build 2016 - B859 - The Future of Visual Studio
Build 2016 - B859 - The Future of Visual StudioBuild 2016 - B859 - The Future of Visual Studio
Build 2016 - B859 - The Future of Visual Studio
 

Similar to ABC'S of Android

7 Crucial Things Every Android Developer Should Know
7 Crucial Things Every Android Developer Should Know7 Crucial Things Every Android Developer Should Know
7 Crucial Things Every Android Developer Should KnowMind IT Systems
 
Interim Report.docx - vsiogap3d.googlecode.com
Interim Report.docx - vsiogap3d.googlecode.comInterim Report.docx - vsiogap3d.googlecode.com
Interim Report.docx - vsiogap3d.googlecode.combutest
 
Latest Android App Development Tools 2019
Latest Android App Development Tools 2019Latest Android App Development Tools 2019
Latest Android App Development Tools 2019Elijahj Williams
 
SAP Mobile Business Intelligence
SAP Mobile Business IntelligenceSAP Mobile Business Intelligence
SAP Mobile Business Intelligencetasmc
 
BIM Project Execution Plans and Open BIM via IFC2x3
BIM Project Execution Plans and Open BIM via IFC2x3BIM Project Execution Plans and Open BIM via IFC2x3
BIM Project Execution Plans and Open BIM via IFC2x3Alfredo Carrato
 
API's for innovative cloud and mobile apps
API's for innovative cloud and mobile appsAPI's for innovative cloud and mobile apps
API's for innovative cloud and mobile appsManmohan Gupta
 
Pptx for ui deisgn field for general public at large
Pptx for ui deisgn field for general public at largePptx for ui deisgn field for general public at large
Pptx for ui deisgn field for general public at largecsservicesnm
 
Charting your path to app nirvana with AEM Mobile
Charting your path to app nirvana with AEM MobileCharting your path to app nirvana with AEM Mobile
Charting your path to app nirvana with AEM MobileBruce Lefebvre
 
Introduction toAndroid Programming=Architecture, Basic building blocks, API ,...
Introduction toAndroid Programming=Architecture, Basic building blocks, API ,...Introduction toAndroid Programming=Architecture, Basic building blocks, API ,...
Introduction toAndroid Programming=Architecture, Basic building blocks, API ,...shamli5
 
Using AEM in a customer global multi-channel program
Using AEM in a customer global multi-channel programUsing AEM in a customer global multi-channel program
Using AEM in a customer global multi-channel programMeryll Blanchet
 
Android app development.pdf
Android app development.pdfAndroid app development.pdf
Android app development.pdfAbanti Aazmin
 
10 Ways to Improve Your Flutter App Performance
10 Ways to Improve Your Flutter App Performance10 Ways to Improve Your Flutter App Performance
10 Ways to Improve Your Flutter App PerformanceWindzoon Technologies
 
Developing for Offline First Mobile Experiences
Developing for Offline First Mobile ExperiencesDeveloping for Offline First Mobile Experiences
Developing for Offline First Mobile ExperiencesNic Raboy
 
Simple Calendar Application using C
Simple Calendar Application using CSimple Calendar Application using C
Simple Calendar Application using Ccodewithc
 
Material design Android L
Material design Android LMaterial design Android L
Material design Android Luzair khan
 
Porting business apps to Windows Phone
Porting business apps to Windows PhonePorting business apps to Windows Phone
Porting business apps to Windows PhoneMichele Capra
 
Modernising Android Architecture Using MVVM and Android Architecture Components
Modernising Android Architecture Using MVVM and Android Architecture ComponentsModernising Android Architecture Using MVVM and Android Architecture Components
Modernising Android Architecture Using MVVM and Android Architecture ComponentsQuintin Balsdon
 

Similar to ABC'S of Android (20)

7 Crucial Things Every Android Developer Should Know
7 Crucial Things Every Android Developer Should Know7 Crucial Things Every Android Developer Should Know
7 Crucial Things Every Android Developer Should Know
 
Interim Report.docx - vsiogap3d.googlecode.com
Interim Report.docx - vsiogap3d.googlecode.comInterim Report.docx - vsiogap3d.googlecode.com
Interim Report.docx - vsiogap3d.googlecode.com
 
Latest Android App Development Tools 2019
Latest Android App Development Tools 2019Latest Android App Development Tools 2019
Latest Android App Development Tools 2019
 
SAP Mobile Business Intelligence
SAP Mobile Business IntelligenceSAP Mobile Business Intelligence
SAP Mobile Business Intelligence
 
BIM Project Execution Plans and Open BIM via IFC2x3
BIM Project Execution Plans and Open BIM via IFC2x3BIM Project Execution Plans and Open BIM via IFC2x3
BIM Project Execution Plans and Open BIM via IFC2x3
 
API's for innovative cloud and mobile apps
API's for innovative cloud and mobile appsAPI's for innovative cloud and mobile apps
API's for innovative cloud and mobile apps
 
Angular vs react.pdf
Angular vs react.pdfAngular vs react.pdf
Angular vs react.pdf
 
Pptx for ui deisgn field for general public at large
Pptx for ui deisgn field for general public at largePptx for ui deisgn field for general public at large
Pptx for ui deisgn field for general public at large
 
Charting your path to app nirvana with AEM Mobile
Charting your path to app nirvana with AEM MobileCharting your path to app nirvana with AEM Mobile
Charting your path to app nirvana with AEM Mobile
 
Introduction toAndroid Programming=Architecture, Basic building blocks, API ,...
Introduction toAndroid Programming=Architecture, Basic building blocks, API ,...Introduction toAndroid Programming=Architecture, Basic building blocks, API ,...
Introduction toAndroid Programming=Architecture, Basic building blocks, API ,...
 
Using AEM in a customer global multi-channel program
Using AEM in a customer global multi-channel programUsing AEM in a customer global multi-channel program
Using AEM in a customer global multi-channel program
 
Android app development.pdf
Android app development.pdfAndroid app development.pdf
Android app development.pdf
 
10 Ways to Improve Your Flutter App Performance
10 Ways to Improve Your Flutter App Performance10 Ways to Improve Your Flutter App Performance
10 Ways to Improve Your Flutter App Performance
 
Developing for Offline First Mobile Experiences
Developing for Offline First Mobile ExperiencesDeveloping for Offline First Mobile Experiences
Developing for Offline First Mobile Experiences
 
Simple Calendar Application using C
Simple Calendar Application using CSimple Calendar Application using C
Simple Calendar Application using C
 
Marketing in the Age of Mobile
Marketing in the Age of MobileMarketing in the Age of Mobile
Marketing in the Age of Mobile
 
Material design Android L
Material design Android LMaterial design Android L
Material design Android L
 
Porting business apps to Windows Phone
Porting business apps to Windows PhonePorting business apps to Windows Phone
Porting business apps to Windows Phone
 
B1 90 tb1300_01
B1 90 tb1300_01B1 90 tb1300_01
B1 90 tb1300_01
 
Modernising Android Architecture Using MVVM and Android Architecture Components
Modernising Android Architecture Using MVVM and Android Architecture ComponentsModernising Android Architecture Using MVVM and Android Architecture Components
Modernising Android Architecture Using MVVM and Android Architecture Components
 

Recently uploaded

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

ABC'S of Android

  • 1. © Zühlke 2016 The ABC’s of Android: Learn Android in 20 Minutes ABC’s of Android 23 March 2018 Slide 1
  • 2. © Zühlke 2016 So you know how to code Assumptions: • You know at least the basic concepts of programming • You don’t mind a bit of Java / Kotlin every now and then • You want to get to know Android, but don’t really know where to start What the presentation assumes ABC’s of Android 23 March 2018 Slide 2
  • 3. © Zühlke 2016 What makes Android different We know what a database is, we know what web pages are… but there are a few new concepts that need to be grasped in Android as a system ABC’s of Android 23 March 2018 Slide 3 Activities Broadcasts Content Providers Services
  • 4. © Zühlke 2016 Activities An activity provides the window in which the app draws its UI. ABC’s of Android 23 March 2018 Slide 4 Activities
  • 5. © Zühlke 2016 Activities Project structure ABC’s of Android 23 March 2018 Slide 5 Activities
  • 6. © Zühlke 2016 Activities Layout file ABC’s of Android 23 March 2018 Slide 6 Activities
  • 7. © Zühlke 2016 Activities Manifest ABC’s of Android 23 March 2018 Slide 7 Activities
  • 8. © Zühlke 2016 Intents: Android glue It is basically a passive data structure holding an abstract description of an action to be performed ABC’s of Android 23 March 2018 Slide 8 Activities
  • 9. © Zühlke 2016 Activities: It’s a wonderful lifecycle Always be aware that in Android your app can have different states ABC’s of Android 23 March 2018 Slide 9 Activities
  • 10. © Zühlke 2016 Broadcasts Broadcasts can be used as a messaging system across apps and outside of the normal user flow ABC’s of Android 23 March 2018 Slide 10 Broadcasts
  • 11. © Zühlke 2016 Content provider A content provider manages access to a central repository of data ABC’s of Android 23 March 2018 Slide 11
  • 12. © Zühlke 2016 Services A Service is an application component that can perform long- running operations in the background, and it does not provide a user interface. ABC’s of Android 23 March 2018 Slide 12 Services Foreground Background Bound

Editor's Notes

  1. Introduce yourself – 2 minutes I have found the concepts here are particularly useful in getting across the core aspects of Android in an incremental way, and will get you developing your first app.
  2. I am hoping that this can eventually become part of a course that encourages younger people to start developing mobile applications for Android. While I don’t necessarily cover every aspect of Android programming, hopefully people will be more away of the different parts of Android to the point where they can go learn more things themselves
  3. These are 4 main concepts in Android, and they are used in varying degrees in your Android application. For example, you might never write a content provider, but you should be aware of them. You should also be aware that just because you can do something, doesn’t mean it’s the only way or even the best way. The hope is that with these four main ideas as hooks, we can start making sense of all the components in and Android application and how they all join together
  4. The android activity is the most essential component everyone should be aware of. Most apps have screens that are displayed to the user. When you create an Android app, it creates a default ”Main” activity for you. There are 3 files we now need to be aware of: The Activity class – this is the code behind the user interface The layout file – this is an XML file which we use to construct what the user actually sees on the screen The Android manifest – this is a application wide controller file. All activities, services, broadcasts, features and permissions must be listed here
  5. The android activity is the most essential component everyone should be aware of. There are tools to help you design user interfaces! I feel that we could get our designers to learn this markup and then they would be able to produce the exact interfaces they would like
  6. The manifest is kind of like a “flight controller” of your app. You cannot show an activity that is not here, you may not use a feature that is not listed.
  7. An Intent provides a facility for performing late runtime binding between the code in different applications. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities. It is basically a passive data structure holding an abstract description of an action to be performed. Intents are how we access most of these new concepts. Intents are used to start services, pass data,
  8. An Intent provides a facility for performing late runtime binding between the code in different applications. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities. It is basically a passive data structure holding an abstract description of an action to be performed. Intents are how we access most of these new concepts. Intents are used to start services, pass data,
  9. Publisher subscribe model However, you must be careful not to abuse the opportunity to respond to broadcasts and run jobs in the background that can contribute to a slow system performance,
  10. Provide database-style access to apps on the same device Do not be afraid of the diagram! Essentially as a “good citizen” you can have access to certain things on an Android device, like contacts, and read that information using standard database methods.
  11. it continues to run in the background even if the user switches to another application A foreground service performs some operation that is noticeable to the user. For example, an audio app would use a foreground service to play an audio track. Foreground services must display a notification. Foreground services continue running even when the user isn't interacting with the app. A background service performs an operation that isn't directly noticed by the user. For example, if an app used a service to compact its storage, that would usually be a background service. A bound service offers a client-server interface that allows components to interact with the service, send requests, receive results, and even do so across processes with inter-process communication (IPC). A bound service runs only as long as another application component is bound to it. Multiple components can bind to the service at once, but when all of them unbind, the service is destroyed. Caution: A service runs in the main thread of its hosting process; the service does not create its own thread and does not run in a separate process unless you specify otherwise. If your service is going to perform any CPU-intensive work or blocking operations, such as MP3 playback or networking, you should create a new thread within the service to complete that work. By using a separate thread, you can reduce the risk of Application Not Responding (ANR) errors, and the application's main thread can remain dedicated to user interaction with your activities. The IntentService class provides a straightforward structure for running an operation on a single background thread. This allows it to handle long-running operations without affecting your user interface's responsiveness. Also, an IntentService isn't affected by most user interface lifecycle events, so it continues to run in circumstances that would shut down an AsyncTask An IntentService has a few limitations: 1. It can't interact directly with your user interface. To put its results in the UI, you have to send them to an Activity. 2. Work requests run sequentially. If an operation is running in an IntentService, and you send it another request, the request waits until the first operation is finished. 3. An operation running on an IntentService can't be interrupted.