SlideShare a Scribd company logo
Android Programming made easyI have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone- BjarneStronstrup
Android Programming made easy
About me – Lars Vogel (Twitter: @vogella)Independently active in the OpenSource Community, e.g. Eclipse and AndroidWorking for SAP AG as Product ManagerMaintains http://www.vogella.de Java, Eclipse and Android related Tutorials with ~15 000 visitors perReceived the Eclipse Top Contributor Award 2010
The next 58 minutesAndroid overviewAndroid Tool chainDemosAndroid Programming ConstructsQ&A
What is Android?– operating system based on Linux– middleware – key applications – set of APIsOpen Source Developed officially by the Open Handset Alliance lead by Google
4 Software layers
Android Programming made easy
Dalvik – town in icelandAndroid ProgrammingYou use the Java programming language but Android does not run Java BytecodeTool dx converts Java Bytecode into Dalvik Executable Code (.dex)
Android ProgrammingYou use the Java programming language but Android does not run Java Bytecode
CallsUses
Developer Toolchain
Android Development Tools (ADT) for EclipseNot OpenSource Eclipse based tooling Provide the emulator
Wizard for creating new project
 Additional ToolingEmulatorQEMU-based ARM emulator runs same image as a deviceUse same toolchain to work with device or emulatorInital startup is slooooowwwwww.....
Your first Android app in < 60 secsTimer check Application
Command lineadb – Android Debugging Bridgetelnet
Android programming constructs
Main Android programming constructsActivityViewsIntentsBroadcast ReceiverServicesContentProvider
Activity – screen in the Android applicationLayout – Defines UI elements and their arrangements.
Life Cyle of an Activityvoid onCreate(Bundle savedInstanceState) void onStart() void onRestart() void onResume() void onPause() void onStop() void onDestroy()Android may destroy you!
Noteworthy:- ADT maintains the ID‘s automatically in R.java- Resources can be defined via xml
I had only the best intents....
Intents Allow modular architecture
Two types
 Explicit: Asking someone to do something
 Implicit: Asking the system who can do something Intent
Services© Lars Vogel and others, Licensed under Creative Commons by-nc-nd-3.0 (de)
ServicesAndroid provides a multitude of system services NotificationService
 VibratorService
 LocationService
 AlarmService
 ....Access via context.getSystemService(Context.CONST);You can define your own service.
Broadcast Receiver – Listen to system events Example: BATTERY_LOW, ACTION_BOOT_COMPLETEDDefined statically in manifest or temporary via code
Timer check ApplicationLets alert!
Security
Android Application requires explicit permissions, e.g. for DB access
 Phone access
 Contacts
 Internet
 System messagesSecurity is an inherent part of the system and not a layer the programmer needs to handle
There is more....
Android ConnectivityI can talk and hearInternet (java.net, Apache HttpClient,...)BluetoothEmailSMSI have feelingsCamera APIMotion DetectionLocation API (GIS)Heat SensorAccelerator

More Related Content

PPT
Intro to Android Programming
PPTX
Android Programming Seminar
PDF
Android Programming
PDF
Android fundamentals and tutorial for beginners
PDF
Android Programming Basics
PPT
PPT Companion to Android
PPTX
Android overview
PPT
Android Application Development Using Java
Intro to Android Programming
Android Programming Seminar
Android Programming
Android fundamentals and tutorial for beginners
Android Programming Basics
PPT Companion to Android
Android overview
Android Application Development Using Java

What's hot (20)

PPTX
Android ppt
PPT
android-tutorial-for-beginner
PDF
Android Development Workshop
PPTX
Introduction to Android and Android Studio
ZIP
Android Application Development
PPTX
Arduino - Android Workshop Presentation
PPT
Introduction to Android, Architecture & Components
PPTX
Android Web app
ODP
Introduction to Android App Development
PPTX
Android Studio Overview
PPTX
What’s new in aNdroid [Google I/O Extended Bangkok 2016]
PPTX
Intel XDK in Brief
PPTX
Gdsc android introduction
PPTX
Introduction to Android programming
PPT
Android Training
ODP
Ci for Android
PPT
Android Programming Basic
PPTX
Project presentation (Loginradius SDK for Android)
PDF
What's new in Android Pie
PPTX
Basic android-ppt
Android ppt
android-tutorial-for-beginner
Android Development Workshop
Introduction to Android and Android Studio
Android Application Development
Arduino - Android Workshop Presentation
Introduction to Android, Architecture & Components
Android Web app
Introduction to Android App Development
Android Studio Overview
What’s new in aNdroid [Google I/O Extended Bangkok 2016]
Intel XDK in Brief
Gdsc android introduction
Introduction to Android programming
Android Training
Ci for Android
Android Programming Basic
Project presentation (Loginradius SDK for Android)
What's new in Android Pie
Basic android-ppt
Ad

Viewers also liked (7)

PDF
Droidcon berlin Apr2013
PDF
Grand finale
PPTX
Introduction to Android Programming
PDF
Code to go Android
PDF
Master pass api
PPTX
Android Project Presentation
PPT
Android seminar-presentation
Droidcon berlin Apr2013
Grand finale
Introduction to Android Programming
Code to go Android
Master pass api
Android Project Presentation
Android seminar-presentation
Ad

Similar to Android Programming made easy (20)

PPTX
Android Introduction on Java Forum Stuttgart 11
PPTX
Android Overview (Karlsruhe VKSI)
PPT
Android presentation
PDF
PT GTUG 1st Technical Tession - Android
PPT
Engineering and Industrial Mobile Application (APP) Development
PDF
Android dev o_auth
PDF
Android Things - The IoT platform for everyone.
PDF
First Steps with Android - An Exciting Introduction
PPT
1 introduction of android
PPT
Synapseindia android apps application
PPTX
Android introduction
PPTX
Dload mobile development
PPT
Android overview
PPT
Build Mobile Application In Android
PPT
Unit I- ANDROID OVERVIEW.ppt
PPTX
Android app development ppt
PPT
Mobile development
PPTX
Manish Chasta - Securing Android Applications
PPT
androidPramming.ppt
PPT
Outsmarting smartphones
Android Introduction on Java Forum Stuttgart 11
Android Overview (Karlsruhe VKSI)
Android presentation
PT GTUG 1st Technical Tession - Android
Engineering and Industrial Mobile Application (APP) Development
Android dev o_auth
Android Things - The IoT platform for everyone.
First Steps with Android - An Exciting Introduction
1 introduction of android
Synapseindia android apps application
Android introduction
Dload mobile development
Android overview
Build Mobile Application In Android
Unit I- ANDROID OVERVIEW.ppt
Android app development ppt
Mobile development
Manish Chasta - Securing Android Applications
androidPramming.ppt
Outsmarting smartphones

More from Lars Vogel (20)

PDF
Eclipse IDE and Platform news on Fosdem 2020
PDF
Eclipse platform news and how to contribute to the Eclipse Open Source project
PDF
Android design and Custom views
PDF
How to become an Eclipse committer in 20 minutes and fork the IDE
PDF
Building beautiful User Interface in Android
PDF
What is so cool about Android 4.0
PDF
What is so cool about Android 4.0?
PDF
Android Jumpstart Jfokus
PDF
Eclipse e4 - Google Eclipse Day
PPT
Android C2DM Presentation at O'Reilly AndroidOpen Conference
PPT
Eclipse 2011 Hot Topics
PPT
Google App Engine for Java
PPTX
Android Cloud to Device Messaging with the Google App Engine
PDF
Google App Engine for Java
PPTX
Eclipse 4.0 - Dynamic Models
PDF
Eclipse 40 Labs- Eclipse Summit Europe 2010
PDF
Eclipse 40 - Eclipse Summit Europe 2010
PPTX
Eclipse 40 and Eclipse e4
PPTX
Eclipse RCP Overview @ Rheinjug
PPTX
Eclipse e4 on Java Forum Stuttgart 2010
Eclipse IDE and Platform news on Fosdem 2020
Eclipse platform news and how to contribute to the Eclipse Open Source project
Android design and Custom views
How to become an Eclipse committer in 20 minutes and fork the IDE
Building beautiful User Interface in Android
What is so cool about Android 4.0
What is so cool about Android 4.0?
Android Jumpstart Jfokus
Eclipse e4 - Google Eclipse Day
Android C2DM Presentation at O'Reilly AndroidOpen Conference
Eclipse 2011 Hot Topics
Google App Engine for Java
Android Cloud to Device Messaging with the Google App Engine
Google App Engine for Java
Eclipse 4.0 - Dynamic Models
Eclipse 40 Labs- Eclipse Summit Europe 2010
Eclipse 40 - Eclipse Summit Europe 2010
Eclipse 40 and Eclipse e4
Eclipse RCP Overview @ Rheinjug
Eclipse e4 on Java Forum Stuttgart 2010

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
KodekX | Application Modernization Development
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Approach and Philosophy of On baking technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
cuic standard and advanced reporting.pdf
Modernizing your data center with Dell and AMD
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Unlocking AI with Model Context Protocol (MCP)
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Machine learning based COVID-19 study performance prediction
KodekX | Application Modernization Development
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Approach and Philosophy of On baking technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Spectral efficient network and resource selection model in 5G networks
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
The AUB Centre for AI in Media Proposal.docx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
20250228 LYD VKU AI Blended-Learning.pptx

Android Programming made easy