SlideShare a Scribd company logo
1 of 25
introduction for development
2016
Aleksei Miliutin
- Android as OS
- Android vs Java
- General concepts in development
- Interestingness
- Features
Agenda
File-oriented system
Android as OS
What does it mean?
It doesn't matter where the file is, in all programms
which support it, we see it.
*.doc for office
*.fb2 for readers
Work with memory
Android as OS
Android knows when it needs more memory and can
close your application.
We need to save important info.
Android is not framework
Android vs Java
The Android SDK provides the tools and APIs necessary
to begin developing applications on the Android
platform using the Java programming language.
Many APIs are similars
Android vs Java
but you don't have all J2SE APIs.
Android uses its own library built on a subset of the
Apache Harmony Java implementation.
You can use java jars if they use only compatible APIs.
Android doesn’t use JVM
Android vs Java
it has has special VM Dalvik*.
Code compiles to standart java byte-code and next it
converts, with utility dx, to .dex formart to next
interpritation on VM Dalvik.
*Dalvik - fishers island in Iceland
General concepts in development
Gradle
Gradle is an open source build
automation system that builds upon
the concepts of Apache Ant and
Apache Maven and introduces a
Groovy-based domain-specific
language (DSL) instead of the XML
form used by Apache Maven of
declaring the project configuration.
General concepts in development
Activity
An Activity is an application component that provides a screen
with which users can interact in order to do something, such as
dial the phone, take a photo, send an email, or view a map. Each
activity is given a window in which to draw its user interface.
General concepts in development
Activity
An Activity is an application component that provides a screen
with which users can interact in order to do something, such as
dial the phone, take a photo, send an email, or view a map. Each
activity is given a window in which to draw its user interface.
General concepts in development
Layout
A layout defines the visual structure for a user interface, such
as the UI for an activity or app widget. You can declare a layout
in two ways:
Declare UI elements in XML.
Instantiate layout elements at runtime.
General concepts in development
Layout
General concepts in development
Layout
General concepts in development
Layout
General concepts in development
Service. Broadcast receiver
A service is a component that runs in the background to
perform long-running operations without needing to interact with
the user and it works even if application is destroyed.
Broadcast Receivers simply respond to broadcast messages
from other applications or from the system itself. These
messages are sometime called events or intents.
General concepts in development
Android manifest
Every application must have an AndroidManifest.xml file
(with precisely that name) in its root directory. The manifest file
presents essential information about your app to the Android
system, information the system must have before it can run any
of the app's code.
General concepts in development
Android manifest
Features
Lifecycles
Many components in Android have its own lifecycle. Android
system calls a series of lifecycle methods on the component
which running now in the user interface or other components in
background.
Activity lifecycle
1 dp = 0.75 px
1 dp = 1 px
1 dp = 1.5 px
1 dp = 2 px
1 dp = 3 px
Features
dp instead of px
Density-independent pixels (pronounced “dips”) are flexible
units that scale to uniform dimensions on any screen. When
developing an Android application, use dp to display elements
uniformly on screens with different densities.
low (ldpi)
medium (mdpi)
high (hdpi)
extra high (xhdpi)
extra-extra-high (xxhdpi)
Features
Simple localization
Put the application's default text in a file with the following
location and name:res/values/strings.xml (required directory)
You want to localize all the text in your application to
Ukranian. In this case, you could create second alternative
strings.xml files, each stored in a locale-specific resource
directory:res/values-uk/strings.xml
If the device is set to any language other than Ukranian, Android will load title
from the res/values/strings.xml file.
If the device is set to Ukranian, Android will load title from the res/values-
uk/strings.xml file.
Interestingness
Firebase
Firebase's is a NoSQL database which provides an API that
allows developers to store and sync data in realtime to every
connected client. Database is storing in JSON.
When data changes, the Firebase automatically sycn it with
connected clients. Before data has been writen to server it saves
in local, what gives possibility to working offline.
Interestingness
Firebase
Interestingness
Firebase
Interestingness
Firebase
THANKS FOR ATTENTION
Aleksei Miliutin
Contact info:
skype: leshkou
email: leshkou@gmail.com

More Related Content

What's hot

Getting Started with Android Application Development
Getting Started with Android Application DevelopmentGetting Started with Android Application Development
Getting Started with Android Application DevelopmentAsanka Indrajith
 
iOS Development, with Swift and XCode
iOS Development, with Swift and XCodeiOS Development, with Swift and XCode
iOS Development, with Swift and XCodeWan Leung Wong
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App DevelopmentMike Kvintus
 
01 11 - graphical user interface - fonts-web-tab
01  11 - graphical user interface - fonts-web-tab01  11 - graphical user interface - fonts-web-tab
01 11 - graphical user interface - fonts-web-tabSiva Kumar reddy Vasipally
 
Android developer uk and its related information
Android developer uk and its related informationAndroid developer uk and its related information
Android developer uk and its related informationXAMARIN Developer in London
 
Introduction to Android programming
Introduction to Android programmingIntroduction to Android programming
Introduction to Android programmingSirwan Afifi
 
Mobile Programming - 2 Jetpack Compose
Mobile Programming - 2 Jetpack ComposeMobile Programming - 2 Jetpack Compose
Mobile Programming - 2 Jetpack ComposeAndiNurkholis1
 
Android Synopsis
Android SynopsisAndroid Synopsis
Android SynopsisNiraj Rahi
 
Android Project Presentation
Android Project PresentationAndroid Project Presentation
Android Project PresentationLaxmi Kant Yadav
 
Questions About Android Application Development
Questions About Android Application DevelopmentQuestions About Android Application Development
Questions About Android Application DevelopmentAdeel Rasheed
 
Android overview
Android overviewAndroid overview
Android overviewHas Taiar
 
Android studio 2.2 Tips and Tricks
Android studio 2.2 Tips and TricksAndroid studio 2.2 Tips and Tricks
Android studio 2.2 Tips and TricksUptech
 
Basic of Android App Development
Basic of Android App DevelopmentBasic of Android App Development
Basic of Android App DevelopmentAbhijeet Gupta
 
Android Development Training
Android Development TrainingAndroid Development Training
Android Development Trainingchandutata
 

What's hot (20)

Android architecture
Android architectureAndroid architecture
Android architecture
 
Getting Started with Android Application Development
Getting Started with Android Application DevelopmentGetting Started with Android Application Development
Getting Started with Android Application Development
 
iOS Development, with Swift and XCode
iOS Development, with Swift and XCodeiOS Development, with Swift and XCode
iOS Development, with Swift and XCode
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App Development
 
01 03 - introduction to android
01  03 - introduction to android01  03 - introduction to android
01 03 - introduction to android
 
01 11 - graphical user interface - fonts-web-tab
01  11 - graphical user interface - fonts-web-tab01  11 - graphical user interface - fonts-web-tab
01 11 - graphical user interface - fonts-web-tab
 
01 02 - introduction - adroid stack
01  02 - introduction - adroid stack01  02 - introduction - adroid stack
01 02 - introduction - adroid stack
 
Android developer uk and its related information
Android developer uk and its related informationAndroid developer uk and its related information
Android developer uk and its related information
 
Introduction to Android programming
Introduction to Android programmingIntroduction to Android programming
Introduction to Android programming
 
Mobile Programming - 2 Jetpack Compose
Mobile Programming - 2 Jetpack ComposeMobile Programming - 2 Jetpack Compose
Mobile Programming - 2 Jetpack Compose
 
Android Synopsis
Android SynopsisAndroid Synopsis
Android Synopsis
 
Android Project Presentation
Android Project PresentationAndroid Project Presentation
Android Project Presentation
 
Questions About Android Application Development
Questions About Android Application DevelopmentQuestions About Android Application Development
Questions About Android Application Development
 
Android overview
Android overviewAndroid overview
Android overview
 
12
1212
12
 
Android studio 2.2 Tips and Tricks
Android studio 2.2 Tips and TricksAndroid studio 2.2 Tips and Tricks
Android studio 2.2 Tips and Tricks
 
Basic of Android App Development
Basic of Android App DevelopmentBasic of Android App Development
Basic of Android App Development
 
AndroidOs
AndroidOsAndroidOs
AndroidOs
 
Android Development Training
Android Development TrainingAndroid Development Training
Android Development Training
 
Android overview
Android overviewAndroid overview
Android overview
 

Viewers also liked

Intro to Android (WWC Denver July 2015)
Intro to Android (WWC Denver July 2015)Intro to Android (WWC Denver July 2015)
Intro to Android (WWC Denver July 2015)Kelly Shuster
 
Intro to Android : Making your first App!
Intro to Android : Making your first App!Intro to Android : Making your first App!
Intro to Android : Making your first App!Stacy Devino
 
Getting Started Building Mobile Applications for iOS and Android
Getting Started Building Mobile Applications for iOS and AndroidGetting Started Building Mobile Applications for iOS and Android
Getting Started Building Mobile Applications for iOS and AndroidEmbarcadero Technologies
 
Android Basic Presentation (Introduction)
Android Basic Presentation (Introduction)Android Basic Presentation (Introduction)
Android Basic Presentation (Introduction)RAHUL TRIPATHI
 
Presentation on Android operating system
Presentation on Android operating systemPresentation on Android operating system
Presentation on Android operating systemSalma Begum
 

Viewers also liked (9)

Android Intro
Android IntroAndroid Intro
Android Intro
 
Android intro
Android introAndroid intro
Android intro
 
Intro to Android (WWC Denver July 2015)
Intro to Android (WWC Denver July 2015)Intro to Android (WWC Denver July 2015)
Intro to Android (WWC Denver July 2015)
 
Intro to Android : Making your first App!
Intro to Android : Making your first App!Intro to Android : Making your first App!
Intro to Android : Making your first App!
 
Getting Started Building Mobile Applications for iOS and Android
Getting Started Building Mobile Applications for iOS and AndroidGetting Started Building Mobile Applications for iOS and Android
Getting Started Building Mobile Applications for iOS and Android
 
Android ppt
Android pptAndroid ppt
Android ppt
 
Android Basic Presentation (Introduction)
Android Basic Presentation (Introduction)Android Basic Presentation (Introduction)
Android Basic Presentation (Introduction)
 
Presentation on Android operating system
Presentation on Android operating systemPresentation on Android operating system
Presentation on Android operating system
 
Android ppt
Android ppt Android ppt
Android ppt
 

Similar to Java talks. Android intoduction for develompment

Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1Kainda Kiniel Daka
 
Android development training programme Day 1
Android development training programme Day 1Android development training programme Day 1
Android development training programme Day 1DHIRAJ PRAVIN
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A NutshellTed Chien
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paperSravan Reddy
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application DevelopmentRamesh Prasad
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answerskavinilavuG
 
Nativa Android Applications development
Nativa Android Applications developmentNativa Android Applications development
Nativa Android Applications developmentAlfredo Morresi
 
Technology and Android.pptx
Technology and Android.pptxTechnology and Android.pptx
Technology and Android.pptxmuthulakshmi cse
 
Android 1-intro n architecture
Android 1-intro n architectureAndroid 1-intro n architecture
Android 1-intro n architectureDilip Singh
 
architecture of android.pptx
architecture of android.pptxarchitecture of android.pptx
architecture of android.pptxallurestore
 
Marakana Android User Interface
Marakana Android User InterfaceMarakana Android User Interface
Marakana Android User InterfaceMarko Gargenta
 
01 what is android
01 what is android01 what is android
01 what is androidC.o. Nieto
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidzeelpatel0504
 
Android : Architecture & Components
Android : Architecture & ComponentsAndroid : Architecture & Components
Android : Architecture & ComponentsAkash Bisariya
 

Similar to Java talks. Android intoduction for develompment (20)

Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1
 
Android development training programme Day 1
Android development training programme Day 1Android development training programme Day 1
Android development training programme Day 1
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
 
Android Basic
Android BasicAndroid Basic
Android Basic
 
Android
Android Android
Android
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paper
 
Android beginners David
Android beginners DavidAndroid beginners David
Android beginners David
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answers
 
Nativa Android Applications development
Nativa Android Applications developmentNativa Android Applications development
Nativa Android Applications development
 
Technology and Android.pptx
Technology and Android.pptxTechnology and Android.pptx
Technology and Android.pptx
 
Android Introduction by Kajal
Android Introduction by KajalAndroid Introduction by Kajal
Android Introduction by Kajal
 
Android 1-intro n architecture
Android 1-intro n architectureAndroid 1-intro n architecture
Android 1-intro n architecture
 
architecture of android.pptx
architecture of android.pptxarchitecture of android.pptx
architecture of android.pptx
 
Marakana Android User Interface
Marakana Android User InterfaceMarakana Android User Interface
Marakana Android User Interface
 
01 what is android
01 what is android01 what is android
01 what is android
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android primer
Android primerAndroid primer
Android primer
 
Android : Architecture & Components
Android : Architecture & ComponentsAndroid : Architecture & Components
Android : Architecture & Components
 

Recently uploaded

Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaWSO2
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceIES VE
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
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 WorkerThousandEyes
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringWSO2
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseWSO2
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 

Recently uploaded (20)

Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
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
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 

Java talks. Android intoduction for develompment

  • 2. - Android as OS - Android vs Java - General concepts in development - Interestingness - Features Agenda
  • 3. File-oriented system Android as OS What does it mean? It doesn't matter where the file is, in all programms which support it, we see it. *.doc for office *.fb2 for readers
  • 4. Work with memory Android as OS Android knows when it needs more memory and can close your application. We need to save important info.
  • 5. Android is not framework Android vs Java The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.
  • 6. Many APIs are similars Android vs Java but you don't have all J2SE APIs. Android uses its own library built on a subset of the Apache Harmony Java implementation. You can use java jars if they use only compatible APIs.
  • 7. Android doesn’t use JVM Android vs Java it has has special VM Dalvik*. Code compiles to standart java byte-code and next it converts, with utility dx, to .dex formart to next interpritation on VM Dalvik. *Dalvik - fishers island in Iceland
  • 8. General concepts in development Gradle Gradle is an open source build automation system that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language (DSL) instead of the XML form used by Apache Maven of declaring the project configuration.
  • 9. General concepts in development Activity An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Each activity is given a window in which to draw its user interface.
  • 10. General concepts in development Activity An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Each activity is given a window in which to draw its user interface.
  • 11. General concepts in development Layout A layout defines the visual structure for a user interface, such as the UI for an activity or app widget. You can declare a layout in two ways: Declare UI elements in XML. Instantiate layout elements at runtime.
  • 12. General concepts in development Layout
  • 13. General concepts in development Layout
  • 14. General concepts in development Layout
  • 15. General concepts in development Service. Broadcast receiver A service is a component that runs in the background to perform long-running operations without needing to interact with the user and it works even if application is destroyed. Broadcast Receivers simply respond to broadcast messages from other applications or from the system itself. These messages are sometime called events or intents.
  • 16. General concepts in development Android manifest Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest file presents essential information about your app to the Android system, information the system must have before it can run any of the app's code.
  • 17. General concepts in development Android manifest
  • 18. Features Lifecycles Many components in Android have its own lifecycle. Android system calls a series of lifecycle methods on the component which running now in the user interface or other components in background. Activity lifecycle
  • 19. 1 dp = 0.75 px 1 dp = 1 px 1 dp = 1.5 px 1 dp = 2 px 1 dp = 3 px Features dp instead of px Density-independent pixels (pronounced “dips”) are flexible units that scale to uniform dimensions on any screen. When developing an Android application, use dp to display elements uniformly on screens with different densities. low (ldpi) medium (mdpi) high (hdpi) extra high (xhdpi) extra-extra-high (xxhdpi)
  • 20. Features Simple localization Put the application's default text in a file with the following location and name:res/values/strings.xml (required directory) You want to localize all the text in your application to Ukranian. In this case, you could create second alternative strings.xml files, each stored in a locale-specific resource directory:res/values-uk/strings.xml If the device is set to any language other than Ukranian, Android will load title from the res/values/strings.xml file. If the device is set to Ukranian, Android will load title from the res/values- uk/strings.xml file.
  • 21. Interestingness Firebase Firebase's is a NoSQL database which provides an API that allows developers to store and sync data in realtime to every connected client. Database is storing in JSON. When data changes, the Firebase automatically sycn it with connected clients. Before data has been writen to server it saves in local, what gives possibility to working offline.
  • 25. THANKS FOR ATTENTION Aleksei Miliutin Contact info: skype: leshkou email: leshkou@gmail.com