SlideShare a Scribd company logo
An android development tutorial for beginners... Ajailal.P
MOBILE OS Symbian iPhone RIM's BlackBerry Window mobile Linux Palm WebOS Samsung BADA OS Android … .
WHAT IS ANDROID? Google    OHA (Open Handset Alliance) The first truly  open  and  comprehensive  platform for mobile devices, all of the software to run a mobile phone but without the  proprietary obstacles  that have hindered mobile innovation. Linux OS kernel Java programming Open source libraries: SQLite, WebKit, OpenGL
WHY ANDROID A simple and powerful SDK No licensing, distribution, or development fees Development over many platform  Linux, Mac OS, windows  Excellent documentation Active developer community
ANDROID SDK FEATURE Network GSM, EDGE, and 3G networks, WiFi, Bluetooth Libraries SQLite (lightweight relational DB), WebKit layout engine coupled with chrome web browser, SSL VGA, 2D graphics library, 3D graphics library based on OpenGL ES 2.0 specifications, and traditional smart phone layouts. Hardware control video/still cameras, touch screens, GPS, accelerometers, gyroscopes, magnetometers, proximity and pressure sensors, thermometers, accelerated 2D and 3D graphics.  Location-based service map (Google API)
ANDROID VERSIONS 1.5  Cupcake 1.6  Donut 2.0/2.1  Éclair 2.2  Froyo 2.3  Gingerbread 3.0  Honeycomb
TOOLS The Android Emulator  Implementation of the Android virtual machine  Test and debug your android applications. Dalvik Debug Monitoring Service ( DDMS )  Monitor and Control the Dalvik virtual machines Logcat (see logged msgs) Android Debug Bridge ( ADB )  Manage the state of an emulator instance or Android-powered device  Copy files, install compiled application packages, and run shell commands. TraceView Graphical analysis tool for viewing the trace logs from your Android application  Debug your application and profile its performance MkSDCard  Creates an SD Card disk image
ANDROID APPLICATION ARCHITECTURE Views: Building block for user interface components. Activities A single, focused thing that the user can do. Interaction with users: creating a window to place  UI
ANDROID APPLICATION ARCHITECTURE Services (Background) Ex: Network Operation Intent  Inter-communication among activities or services Resource Externalization of strings and graphics Notification signaling users: Light, sound, icon, dialog, notification Ex: new message arrives Content Providers  share data between applications Intent
VIEW Layout of visual interface Java Code  Initialize  Access TextView myTextView =  (TextView)findViewById(R.id.myTextView); <?xml version=”1.0” encoding=”utf-8”?> <LinearLayout  xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent”> <TextView android:id=”@+id/myTextView” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:text=”Hello World, HelloWorld” /> </LinearLayout> @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.screen); } screen.xml
VIEW COMPONENT Widget Toolbox TextView, EditText,Button, Form, TimePicker… ListView  Layout To positions of controls LinearLayout, Relativelayout,  Menu ex. Exit, Settings etc
ACTIVITY   A single, focused thing that the user can do. Activities are like a stack. So when we call startActivity(), we are telling Android &quot;put this activity on top of mine” Foreground Activity: suspended when invisible Visual, interactive Ex: Game, Map Background  Service : Little interaction  Ex: Hardware, power management Intermittent Activity Notification
Activity lifecycle
USER INTERACTION EVENT  onKeyDown, onKeyUp onTrackBallEvent onTouchEvent myEditText. setOnKeyListener (new  OnKeyListener () { public boolean  onKey (View v, int  keyCode , KeyEvent  event ) { if (event.getAction() == KeyEvent.ACTION_DOWN) if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { … return true; } return false; }});} registerButton. setOnClickListener (new OnClickListener() { public void onClick(View arg0) {….}}
INTENT An intent is an abstract description of an operation to be performed. Launch an activity Explicit Implicit: Android selects the best  startActivity(); Subactivity: feedback Child: use intent as feedback, setResult (  before finish() ) Parent: onActivityResult startActivityForResult Action, data, extra parameter intent.putExtra(name, property) ; Ex: Intent intent = new  Intent(MyActivity.this, MyOtherActivity.class);
SERVICE Service class public class MyService extends Service  public void onStart() {…} Manifest.xml <service android:enabled=”true” android:name=”.MyService”></service> Control startService stopService Communication Bind service with activity: use public method and properties Intent
WORKING IN BACKGROUND Services  NO GUI,  higher  priority than inactive Activities Usage:  responding to events, polling for data, updating Content Providers. However, all in the main thread  Background threads
THREADING What to thread? Network, file IO, Complex processing How ? new Thread  Synchronize threads Handler.post() UI Thread ( AsyncTask ) doInBackground() onPreExecute() onProgressUpdate() onCancelled() onPostExecute()
EXTERNAL RESOURCES values/ String, color, array, dimension, style theme drawables/ Images, icon layout/ main.xml Menu menu.xml There can be separate layout and drawables folders for landscape and portrait orientation. There can be different layout and drawables folders for small, large and normal screen. And hdpi, mdpi, ldpi resolutions.
SERVICE APP – MANIFEST.XML Service Activity (intent-filter) Permission
NORMAL APPLICATION – MANIFEST.XML Application Activity 1 (main) Activity 2  SDK Version Screen Support
DEBUG Package - android.util.Log View results Logcat Eclipse IDE
DEBUG ON DEVICE On device Debug mode On desktop Connect your Phone with your PC  When it asks for driver location choose For windows, android-sdk-windows-1.5_r3\usb_driver\x86\ You'll see sth like &quot;HTC Dream Composite ADB Interface&quot; on success  (Re)Start Eclipse  Your G1 should now be listed in the DDMS-Perspective under Device
INSTALL PACKAGE TO ANDROID PHONES Compile the apk packages in Eclipse  Export signed application package adb install …apk Error: uninstall
DALVIK DEBUG MONITORING SERVICE
ANDROID DEBUG BRIDGE (ADB)
 
Ad

More Related Content

What's hot (20)

Android Services
Android ServicesAndroid Services
Android Services
Ahsanul Karim
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in android
Prawesh Shrestha
 
Introduction to iOS Apps Development
Introduction to iOS Apps DevelopmentIntroduction to iOS Apps Development
Introduction to iOS Apps Development
Prof. Erwin Globio
 
Mobile application development
Mobile application developmentMobile application development
Mobile application development
Eric Cattoir
 
Android architecture
Android architectureAndroid architecture
Android architecture
Saurabh Kukreja
 
Android ppt
Android pptAndroid ppt
Android ppt
Ansh Singh
 
Flutter Intro
Flutter IntroFlutter Intro
Flutter Intro
Vladimir Parfenov
 
Android seminar ppt
Android seminar pptAndroid seminar ppt
Android seminar ppt
chakrapani tripathi
 
Introduction to Eclipse IDE
Introduction to Eclipse IDEIntroduction to Eclipse IDE
Introduction to Eclipse IDE
Muhammad Hafiz Hasan
 
Android Fragment
Android FragmentAndroid Fragment
Android Fragment
Kan-Han (John) Lu
 
Eclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATIONEclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATION
AYESHA JAVED
 
Android SDK Tutorial | Edureka
Android SDK Tutorial | EdurekaAndroid SDK Tutorial | Edureka
Android SDK Tutorial | Edureka
Edureka!
 
Android seminar-presentation
Android seminar-presentationAndroid seminar-presentation
Android seminar-presentation
connectshilpa
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
Parinita03
 
Data Storage In Android
Data Storage In Android Data Storage In Android
Data Storage In Android
Aakash Ugale
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
SundaresanB5
 
Flutter presentation.pptx
Flutter presentation.pptxFlutter presentation.pptx
Flutter presentation.pptx
FalgunSorathiya
 
Flutter
FlutterFlutter
Flutter
Ankit Kumar
 
Fragment
Fragment Fragment
Fragment
nationalmobileapps
 
Introduction to Android ppt
Introduction to Android pptIntroduction to Android ppt
Introduction to Android ppt
Taha Malampatti
 
Android Services
Android ServicesAndroid Services
Android Services
Ahsanul Karim
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in android
Prawesh Shrestha
 
Introduction to iOS Apps Development
Introduction to iOS Apps DevelopmentIntroduction to iOS Apps Development
Introduction to iOS Apps Development
Prof. Erwin Globio
 
Mobile application development
Mobile application developmentMobile application development
Mobile application development
Eric Cattoir
 
Android architecture
Android architectureAndroid architecture
Android architecture
Saurabh Kukreja
 
Android ppt
Android pptAndroid ppt
Android ppt
Ansh Singh
 
Eclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATIONEclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATION
AYESHA JAVED
 
Android SDK Tutorial | Edureka
Android SDK Tutorial | EdurekaAndroid SDK Tutorial | Edureka
Android SDK Tutorial | Edureka
Edureka!
 
Android seminar-presentation
Android seminar-presentationAndroid seminar-presentation
Android seminar-presentation
connectshilpa
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
Parinita03
 
Data Storage In Android
Data Storage In Android Data Storage In Android
Data Storage In Android
Aakash Ugale
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
SundaresanB5
 
Flutter presentation.pptx
Flutter presentation.pptxFlutter presentation.pptx
Flutter presentation.pptx
FalgunSorathiya
 
Introduction to Android ppt
Introduction to Android pptIntroduction to Android ppt
Introduction to Android ppt
Taha Malampatti
 

Viewers also liked (20)

Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginners
Boom Shukla
 
Android tutorial ppt
Android tutorial pptAndroid tutorial ppt
Android tutorial ppt
Rehna Renu
 
Android studio
Android studioAndroid studio
Android studio
Paresh Mayani
 
Android Development: The Basics
Android Development: The BasicsAndroid Development: The Basics
Android Development: The Basics
Mike Desjardins
 
Next Step, Android Studio!
Next Step, Android Studio!Next Step, Android Studio!
Next Step, Android Studio!
Édipo Souza
 
C-Header file
C-Header fileC-Header file
C-Header file
Harshavardhan Reddy Katta
 
ANDROID 2.0
ANDROID 2.0ANDROID 2.0
ANDROID 2.0
Kelly Ledezma
 
Linux-training-for-beginners-in-mumbai
Linux-training-for-beginners-in-mumbaiLinux-training-for-beginners-in-mumbai
Linux-training-for-beginners-in-mumbai
Unmesh Baile
 
Beginners guide to creating mobile apps
Beginners guide to creating mobile appsBeginners guide to creating mobile apps
Beginners guide to creating mobile apps
James Quick
 
Android App Development Tips for Beginners
Android App Development Tips for BeginnersAndroid App Development Tips for Beginners
Android App Development Tips for Beginners
Zoftino
 
Lecture 06. iOS Programming. Основи Objective-C
Lecture 06. iOS Programming. Основи Objective-CLecture 06. iOS Programming. Основи Objective-C
Lecture 06. iOS Programming. Основи Objective-C
Maksym Davydov
 
Tipos de grupos
Tipos de gruposTipos de grupos
Tipos de grupos
Carlos Manuel Ruiz Zamora
 
Programming Android Application in Scala.
Programming Android Application in Scala.Programming Android Application in Scala.
Programming Android Application in Scala.
Brian Hsu
 
Android Development: Build Android App from Scratch
Android Development: Build Android App from ScratchAndroid Development: Build Android App from Scratch
Android Development: Build Android App from Scratch
Taufan Erfiyanto
 
Android Programming
Android ProgrammingAndroid Programming
Android Programming
Pasi Manninen
 
Inspirational lunch Selor "Open Badges"
Inspirational lunch Selor "Open Badges"Inspirational lunch Selor "Open Badges"
Inspirational lunch Selor "Open Badges"
Vincent Van Malderen
 
Baas Kaar It Co Ltd Sap Services Short
Baas Kaar It Co Ltd   Sap Services ShortBaas Kaar It Co Ltd   Sap Services Short
Baas Kaar It Co Ltd Sap Services Short
Andrew Asir
 
Oratory Evaluator by Rajan Satardekar
Oratory Evaluator by Rajan SatardekarOratory Evaluator by Rajan Satardekar
Oratory Evaluator by Rajan Satardekar
Pravin Sabnis
 
Digital media for marketing meeting 2011
Digital media for marketing meeting 2011Digital media for marketing meeting 2011
Digital media for marketing meeting 2011
cmviasat
 
Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginners
Boom Shukla
 
Android tutorial ppt
Android tutorial pptAndroid tutorial ppt
Android tutorial ppt
Rehna Renu
 
Android studio
Android studioAndroid studio
Android studio
Paresh Mayani
 
Android Development: The Basics
Android Development: The BasicsAndroid Development: The Basics
Android Development: The Basics
Mike Desjardins
 
Next Step, Android Studio!
Next Step, Android Studio!Next Step, Android Studio!
Next Step, Android Studio!
Édipo Souza
 
Linux-training-for-beginners-in-mumbai
Linux-training-for-beginners-in-mumbaiLinux-training-for-beginners-in-mumbai
Linux-training-for-beginners-in-mumbai
Unmesh Baile
 
Beginners guide to creating mobile apps
Beginners guide to creating mobile appsBeginners guide to creating mobile apps
Beginners guide to creating mobile apps
James Quick
 
Android App Development Tips for Beginners
Android App Development Tips for BeginnersAndroid App Development Tips for Beginners
Android App Development Tips for Beginners
Zoftino
 
Lecture 06. iOS Programming. Основи Objective-C
Lecture 06. iOS Programming. Основи Objective-CLecture 06. iOS Programming. Основи Objective-C
Lecture 06. iOS Programming. Основи Objective-C
Maksym Davydov
 
Programming Android Application in Scala.
Programming Android Application in Scala.Programming Android Application in Scala.
Programming Android Application in Scala.
Brian Hsu
 
Android Development: Build Android App from Scratch
Android Development: Build Android App from ScratchAndroid Development: Build Android App from Scratch
Android Development: Build Android App from Scratch
Taufan Erfiyanto
 
Android Programming
Android ProgrammingAndroid Programming
Android Programming
Pasi Manninen
 
Inspirational lunch Selor "Open Badges"
Inspirational lunch Selor "Open Badges"Inspirational lunch Selor "Open Badges"
Inspirational lunch Selor "Open Badges"
Vincent Van Malderen
 
Baas Kaar It Co Ltd Sap Services Short
Baas Kaar It Co Ltd   Sap Services ShortBaas Kaar It Co Ltd   Sap Services Short
Baas Kaar It Co Ltd Sap Services Short
Andrew Asir
 
Oratory Evaluator by Rajan Satardekar
Oratory Evaluator by Rajan SatardekarOratory Evaluator by Rajan Satardekar
Oratory Evaluator by Rajan Satardekar
Pravin Sabnis
 
Digital media for marketing meeting 2011
Digital media for marketing meeting 2011Digital media for marketing meeting 2011
Digital media for marketing meeting 2011
cmviasat
 
Ad

Similar to android-tutorial-for-beginner (20)

A Taste of Java ME
A Taste of Java MEA Taste of Java ME
A Taste of Java ME
wiradikusuma
 
Android Basics
Android BasicsAndroid Basics
Android Basics
Arvind Sahu
 
Build Mobile Application In Android
Build Mobile Application In AndroidBuild Mobile Application In Android
Build Mobile Application In Android
dnnddane
 
Android Introduction on Java Forum Stuttgart 11
Android Introduction on Java Forum Stuttgart 11 Android Introduction on Java Forum Stuttgart 11
Android Introduction on Java Forum Stuttgart 11
Lars Vogel
 
Android Overview
Android OverviewAndroid Overview
Android Overview
Publicis Sapient Engineering
 
Designing Apps for the Motorola XOOM
Designing Apps for the Motorola XOOM Designing Apps for the Motorola XOOM
Designing Apps for the Motorola XOOM
Motorola Mobility - MOTODEV
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
Dharani Kumar Madduri
 
Android Anatomy
Android  AnatomyAndroid  Anatomy
Android Anatomy
Bhavya Siddappa
 
Android architecture and Additional Components
Android architecture and Additional ComponentsAndroid architecture and Additional Components
Android architecture and Additional Components
SoftNutx
 
1 introduction of android
1 introduction of android1 introduction of android
1 introduction of android
akila_mano
 
Android overview
Android overviewAndroid overview
Android overview
Has Taiar
 
Android Programming made easy
Android Programming made easyAndroid Programming made easy
Android Programming made easy
Lars Vogel
 
Android presentation
Android presentationAndroid presentation
Android presentation
Imam Raza
 
Technology and Android.pptx
Technology and Android.pptxTechnology and Android.pptx
Technology and Android.pptx
muthulakshmi cse
 
PT GTUG 1st Technical Tession - Android
PT GTUG 1st Technical Tession - AndroidPT GTUG 1st Technical Tession - Android
PT GTUG 1st Technical Tession - Android
drjuniornet
 
J2 Me Gaming Using Netbeans
J2 Me Gaming Using NetbeansJ2 Me Gaming Using Netbeans
J2 Me Gaming Using Netbeans
strongdevil
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
Abid Khan
 
Mini project final presentation
Mini project final presentationMini project final presentation
Mini project final presentation
GianlucaCapozzi1
 
Slides bootcamp21
Slides bootcamp21Slides bootcamp21
Slides bootcamp21
dxsaki
 
OS in mobile devices [Android]
OS in mobile devices [Android]OS in mobile devices [Android]
OS in mobile devices [Android]
Yatharth Aggarwal
 
A Taste of Java ME
A Taste of Java MEA Taste of Java ME
A Taste of Java ME
wiradikusuma
 
Android Basics
Android BasicsAndroid Basics
Android Basics
Arvind Sahu
 
Build Mobile Application In Android
Build Mobile Application In AndroidBuild Mobile Application In Android
Build Mobile Application In Android
dnnddane
 
Android Introduction on Java Forum Stuttgart 11
Android Introduction on Java Forum Stuttgart 11 Android Introduction on Java Forum Stuttgart 11
Android Introduction on Java Forum Stuttgart 11
Lars Vogel
 
Android architecture and Additional Components
Android architecture and Additional ComponentsAndroid architecture and Additional Components
Android architecture and Additional Components
SoftNutx
 
1 introduction of android
1 introduction of android1 introduction of android
1 introduction of android
akila_mano
 
Android overview
Android overviewAndroid overview
Android overview
Has Taiar
 
Android Programming made easy
Android Programming made easyAndroid Programming made easy
Android Programming made easy
Lars Vogel
 
Android presentation
Android presentationAndroid presentation
Android presentation
Imam Raza
 
Technology and Android.pptx
Technology and Android.pptxTechnology and Android.pptx
Technology and Android.pptx
muthulakshmi cse
 
PT GTUG 1st Technical Tession - Android
PT GTUG 1st Technical Tession - AndroidPT GTUG 1st Technical Tession - Android
PT GTUG 1st Technical Tession - Android
drjuniornet
 
J2 Me Gaming Using Netbeans
J2 Me Gaming Using NetbeansJ2 Me Gaming Using Netbeans
J2 Me Gaming Using Netbeans
strongdevil
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
Abid Khan
 
Mini project final presentation
Mini project final presentationMini project final presentation
Mini project final presentation
GianlucaCapozzi1
 
Slides bootcamp21
Slides bootcamp21Slides bootcamp21
Slides bootcamp21
dxsaki
 
OS in mobile devices [Android]
OS in mobile devices [Android]OS in mobile devices [Android]
OS in mobile devices [Android]
Yatharth Aggarwal
 
Ad

Recently uploaded (20)

AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 

android-tutorial-for-beginner

  • 1. An android development tutorial for beginners... Ajailal.P
  • 2. MOBILE OS Symbian iPhone RIM's BlackBerry Window mobile Linux Palm WebOS Samsung BADA OS Android … .
  • 3. WHAT IS ANDROID? Google  OHA (Open Handset Alliance) The first truly open and comprehensive platform for mobile devices, all of the software to run a mobile phone but without the proprietary obstacles that have hindered mobile innovation. Linux OS kernel Java programming Open source libraries: SQLite, WebKit, OpenGL
  • 4. WHY ANDROID A simple and powerful SDK No licensing, distribution, or development fees Development over many platform Linux, Mac OS, windows Excellent documentation Active developer community
  • 5. ANDROID SDK FEATURE Network GSM, EDGE, and 3G networks, WiFi, Bluetooth Libraries SQLite (lightweight relational DB), WebKit layout engine coupled with chrome web browser, SSL VGA, 2D graphics library, 3D graphics library based on OpenGL ES 2.0 specifications, and traditional smart phone layouts. Hardware control video/still cameras, touch screens, GPS, accelerometers, gyroscopes, magnetometers, proximity and pressure sensors, thermometers, accelerated 2D and 3D graphics. Location-based service map (Google API)
  • 6. ANDROID VERSIONS 1.5 Cupcake 1.6 Donut 2.0/2.1 Éclair 2.2 Froyo 2.3 Gingerbread 3.0 Honeycomb
  • 7. TOOLS The Android Emulator Implementation of the Android virtual machine Test and debug your android applications. Dalvik Debug Monitoring Service ( DDMS ) Monitor and Control the Dalvik virtual machines Logcat (see logged msgs) Android Debug Bridge ( ADB ) Manage the state of an emulator instance or Android-powered device Copy files, install compiled application packages, and run shell commands. TraceView Graphical analysis tool for viewing the trace logs from your Android application Debug your application and profile its performance MkSDCard Creates an SD Card disk image
  • 8. ANDROID APPLICATION ARCHITECTURE Views: Building block for user interface components. Activities A single, focused thing that the user can do. Interaction with users: creating a window to place UI
  • 9. ANDROID APPLICATION ARCHITECTURE Services (Background) Ex: Network Operation Intent Inter-communication among activities or services Resource Externalization of strings and graphics Notification signaling users: Light, sound, icon, dialog, notification Ex: new message arrives Content Providers share data between applications Intent
  • 10. VIEW Layout of visual interface Java Code Initialize Access TextView myTextView = (TextView)findViewById(R.id.myTextView); <?xml version=”1.0” encoding=”utf-8”?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent”> <TextView android:id=”@+id/myTextView” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:text=”Hello World, HelloWorld” /> </LinearLayout> @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.screen); } screen.xml
  • 11. VIEW COMPONENT Widget Toolbox TextView, EditText,Button, Form, TimePicker… ListView Layout To positions of controls LinearLayout, Relativelayout, Menu ex. Exit, Settings etc
  • 12. ACTIVITY A single, focused thing that the user can do. Activities are like a stack. So when we call startActivity(), we are telling Android &quot;put this activity on top of mine” Foreground Activity: suspended when invisible Visual, interactive Ex: Game, Map Background Service : Little interaction Ex: Hardware, power management Intermittent Activity Notification
  • 14. USER INTERACTION EVENT onKeyDown, onKeyUp onTrackBallEvent onTouchEvent myEditText. setOnKeyListener (new OnKeyListener () { public boolean onKey (View v, int keyCode , KeyEvent event ) { if (event.getAction() == KeyEvent.ACTION_DOWN) if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { … return true; } return false; }});} registerButton. setOnClickListener (new OnClickListener() { public void onClick(View arg0) {….}}
  • 15. INTENT An intent is an abstract description of an operation to be performed. Launch an activity Explicit Implicit: Android selects the best startActivity(); Subactivity: feedback Child: use intent as feedback, setResult ( before finish() ) Parent: onActivityResult startActivityForResult Action, data, extra parameter intent.putExtra(name, property) ; Ex: Intent intent = new Intent(MyActivity.this, MyOtherActivity.class);
  • 16. SERVICE Service class public class MyService extends Service public void onStart() {…} Manifest.xml <service android:enabled=”true” android:name=”.MyService”></service> Control startService stopService Communication Bind service with activity: use public method and properties Intent
  • 17. WORKING IN BACKGROUND Services NO GUI, higher priority than inactive Activities Usage: responding to events, polling for data, updating Content Providers. However, all in the main thread Background threads
  • 18. THREADING What to thread? Network, file IO, Complex processing How ? new Thread Synchronize threads Handler.post() UI Thread ( AsyncTask ) doInBackground() onPreExecute() onProgressUpdate() onCancelled() onPostExecute()
  • 19. EXTERNAL RESOURCES values/ String, color, array, dimension, style theme drawables/ Images, icon layout/ main.xml Menu menu.xml There can be separate layout and drawables folders for landscape and portrait orientation. There can be different layout and drawables folders for small, large and normal screen. And hdpi, mdpi, ldpi resolutions.
  • 20. SERVICE APP – MANIFEST.XML Service Activity (intent-filter) Permission
  • 21. NORMAL APPLICATION – MANIFEST.XML Application Activity 1 (main) Activity 2 SDK Version Screen Support
  • 22. DEBUG Package - android.util.Log View results Logcat Eclipse IDE
  • 23. DEBUG ON DEVICE On device Debug mode On desktop Connect your Phone with your PC When it asks for driver location choose For windows, android-sdk-windows-1.5_r3\usb_driver\x86\ You'll see sth like &quot;HTC Dream Composite ADB Interface&quot; on success (Re)Start Eclipse Your G1 should now be listed in the DDMS-Perspective under Device
  • 24. INSTALL PACKAGE TO ANDROID PHONES Compile the apk packages in Eclipse Export signed application package adb install …apk Error: uninstall
  • 27. Â