SlideShare a Scribd company logo
Mobile Application
  Development
 with ANDROID
Agenda
•   Mobile Application Development (MAD)
•   Platform architecture
•   Application building blocks
•   Development tools
•   Hello Android
•   Resources
Few reasons to go MAD…

• Smart Phones
  – Internet access anywhere
  – Social networking
• Millions of mobile users
• Open standards
Linux Kernel
•   Works as a HAL
•   Device drivers
•   Memory management
•   Process management
•   Networking
Libraries
•   C/C++ libraries
•   Interface through Java
•   Surface manager – Handling UI Windows
•   2D and 3D graphics
•   Media codecs, SQLite, Browser engine
Android Runtime
• Dalvik VM
  – Dex files
  – Compact and efficient than class files
  – Limited memory and battery power
• Core Libraries
  – Java 5 Std edition
  – Collections, I/O etc…
Application Framework



• API interface
• Activity manager – manages application
  life cycle.
Applications


• Built in and user apps
• Can replace built in apps
Application Building Blocks
•   Activity
•   IntentReceiver
•   Service
•   ContentProvider
Activities
• Typically correspond to one UI screen
• But, they can:
  – Be faceless
  – Be in a floating window
  – Return a value
Intent Receivers
• Components that respond to broadcast
  ‘Intents’
• Way to respond to external notification or
  alarms
• Apps can invent and broadcast their own
  Intent
Intents
• Think of Intents as a verb and object; a
  description of what you want done
  – E.g. VIEW, CALL, PLAY etc..
• System matches Intent with Activity that
  can best provide the service
• Activities and IntentReceivers describe
  what Intents they can service
Services
• Faceless components that run in the
  background
  – E.g. music player, network download etc…
Content Providers
• Enables sharing of data across
  applications
  – E.g. address book, photo gallery
• Provides uniform APIs for:
  – querying
  – delete, update and insert.
• Content is represented by URI and MIME
  type
Development Tools

• Eclipse

• Android SDK
  developer.android.com
The Emulator

 • QEMU-based ARM emulator
 • Runs the same image as the
   device

 • Limitations:
   – No Camera support
Types of
Android Devices


                  18
HTC Droid
                                      Incredible
                                        Motorola Droid




           http://www.androidcentral.com/droid-incredible             19
http://homebiss.blogspot.com/2009/11/motorola-droid-iphone-3gs.html
Galaxy Tablet

                                 • Retail: $250 with 2 year
                                 contract
                                 • 7-inch 1024 x 600-pixel LCD
                                 screen
                                 • 0.84 pounds
                                 • 7.48 x 4.74 x 0.47 inches
                                 • 1 GHz Coretx A8 processor
                                 • 512 MB RAM
                                 • 16 or 32 GB internal storage
                                 • Front and rear cameras


                                                                  20
http://www.samsung.com/us/mobile/galaxy-tab/SCH-I800BKAVZW
Android-Powered Microwave




                By Touch Revolution – at CES 2010
  http://www.pocket-lint.com/news/30712/android-powered-microwave-cooking-
                                    google                                   21
Google Nexus One
                                        • Retail: $530
                                        • Not tied to single
                                        provider
                                        • 3.7-inch 800 x 400-pixel
                                        OLED screen
                                        • No support for multitouch
                                        • 512 MB of built-in flash
                                        memory
                                        • Preloaded 4 GB SD card
                                        • Ubiquitous voice
                                        recognition
                                        • 5-megapixel camera with
                                        zoom and flash
                                        • Navigation system using
                                        Google Maps and GPS
  http://www.wired.com/reviews/product/pr_nexus_one               22
Hello World
• Generating UIs
  – Views – building blocks
  – E.g. TextView, EditText, Button
  – Placed into Layouts
  – E.g.
    LinearLayout, TableLayout, AbsoluteLayout
Producing an Android App
Java    javac        Byte
code                 code
                                     dx     Dalvik
.java                .class
                                             exe

                                          classes.dex      aapt


                       Byte
                       code                 <xml>

                Other .class files    AndroidManifest.xm          .apk
                                              l
                                               <str
                                               >


                                          Resources                  24
Hello Android Tutorial




                                                                 25
       http://developer.android.com/resources/tutorials/hello-
       world.html
Important Files
• src/HelloAndroid.java
   – Activity which is started when app executes
• res/layout/main.xml
   – Defines & lays out widgets for the activity
• res/values/strings.xml
   – String constants used by app
• gen/R.java (Don’t touch!)
   – Auto-generated file with identifiers from main.xml, strings.xml,
      and elsewhere
• AndroidManifest.xml
   – Declares all the app’s components
   – Names libraries app needs to be linked against
   – Identifies permissions the app expects to be granted
                                                                        26
src/HelloAndroid.java
• Activity which is started when app executes




                                                27
res/layout/main.xml
• Declares layouts & widgets for the activity




                                                                             28
        Tree from: http://developer.android.com/guide/topics/ui/index.html
Interesting things to do
• Android is open source
• Opportunities for researchers
• Get the source, compile and update the
  device image

More Related Content

Viewers also liked

13號 黃蓮茵
13號 黃蓮茵13號 黃蓮茵
13號 黃蓮茵輝 哲
 
El pèsol Negre. Número 6. Agost 2001 (2a època)
El pèsol Negre. Número 6. Agost 2001 (2a època)El pèsol Negre. Número 6. Agost 2001 (2a època)
El pèsol Negre. Número 6. Agost 2001 (2a època)
Cgtmanresa Bages
 
06 e
06 e06 e
ใบงานท 2
ใบงานท   2ใบงานท   2
ใบงานท 2Robotto' Data
 
Hearing loss solutions: What you can do to help
Hearing loss solutions: What you can do to helpHearing loss solutions: What you can do to help
Hearing loss solutions: What you can do to help
Audiology Associates & Hearing Aids Today
 
第一組婚姻報告
第一組婚姻報告第一組婚姻報告
第一組婚姻報告輝 哲
 
роль русского языка, литературы, истории и обществознания в современном обще...
роль русского языка, литературы, истории и обществознания  в современном обще...роль русского языка, литературы, истории и обществознания  в современном обще...
роль русского языка, литературы, истории и обществознания в современном обще...Alexander Denisov
 
iwaal2011
iwaal2011iwaal2011
iwaal2011
Augusto Ad
 
2nd term grammar batxi 2
2nd term grammar batxi 22nd term grammar batxi 2
2nd term grammar batxi 2Maribel Gomez
 
Natural Beauty Summit Americaa Lynda Goldman Presentation May 15 2012
Natural Beauty Summit Americaa Lynda Goldman Presentation May 15 2012Natural Beauty Summit Americaa Lynda Goldman Presentation May 15 2012
Natural Beauty Summit Americaa Lynda Goldman Presentation May 15 2012
Lynda819
 
15劉淑蓉.ptt
15劉淑蓉.ptt15劉淑蓉.ptt
15劉淑蓉.ptt輝 哲
 
Supersticiones
SupersticionesSupersticiones
Supersticiones
Cyntia Ocañas
 
MLA Documentation
MLA DocumentationMLA Documentation
MLA Documentation
apcoyote
 
A study on performance of sector wise mutual fund schemes in India
A study on performance of sector wise mutual fund schemes in IndiaA study on performance of sector wise mutual fund schemes in India
A study on performance of sector wise mutual fund schemes in India
wwgreatmutha
 
二Mt三a 7號柯婷儀[1]
二Mt三a 7號柯婷儀[1]二Mt三a 7號柯婷儀[1]
二Mt三a 7號柯婷儀[1]輝 哲
 
吳威龍Ppt
吳威龍Ppt吳威龍Ppt
吳威龍Ppt輝 哲
 
Albanian Res by Dr Lorenc Gordani - Slides
Albanian Res by Dr Lorenc Gordani - SlidesAlbanian Res by Dr Lorenc Gordani - Slides
Albanian Res by Dr Lorenc Gordani - Slides
Lorenc Gordani
 
D6.2.2 pac politics affiliation club erasmo
D6.2.2 pac politics affiliation club erasmoD6.2.2 pac politics affiliation club erasmo
D6.2.2 pac politics affiliation club erasmo
Learn Politics
 
二幼三A 江瑜華 12號 先知小書[1]
二幼三A 江瑜華 12號 先知小書[1]二幼三A 江瑜華 12號 先知小書[1]
二幼三A 江瑜華 12號 先知小書[1]輝 哲
 

Viewers also liked (20)

13號 黃蓮茵
13號 黃蓮茵13號 黃蓮茵
13號 黃蓮茵
 
El pèsol Negre. Número 6. Agost 2001 (2a època)
El pèsol Negre. Número 6. Agost 2001 (2a època)El pèsol Negre. Número 6. Agost 2001 (2a època)
El pèsol Negre. Número 6. Agost 2001 (2a època)
 
06 e
06 e06 e
06 e
 
ใบงานท 2
ใบงานท   2ใบงานท   2
ใบงานท 2
 
Hearing loss solutions: What you can do to help
Hearing loss solutions: What you can do to helpHearing loss solutions: What you can do to help
Hearing loss solutions: What you can do to help
 
第一組婚姻報告
第一組婚姻報告第一組婚姻報告
第一組婚姻報告
 
роль русского языка, литературы, истории и обществознания в современном обще...
роль русского языка, литературы, истории и обществознания  в современном обще...роль русского языка, литературы, истории и обществознания  в современном обще...
роль русского языка, литературы, истории и обществознания в современном обще...
 
iwaal2011
iwaal2011iwaal2011
iwaal2011
 
1b 1c 1st term
1b 1c 1st term1b 1c 1st term
1b 1c 1st term
 
2nd term grammar batxi 2
2nd term grammar batxi 22nd term grammar batxi 2
2nd term grammar batxi 2
 
Natural Beauty Summit Americaa Lynda Goldman Presentation May 15 2012
Natural Beauty Summit Americaa Lynda Goldman Presentation May 15 2012Natural Beauty Summit Americaa Lynda Goldman Presentation May 15 2012
Natural Beauty Summit Americaa Lynda Goldman Presentation May 15 2012
 
15劉淑蓉.ptt
15劉淑蓉.ptt15劉淑蓉.ptt
15劉淑蓉.ptt
 
Supersticiones
SupersticionesSupersticiones
Supersticiones
 
MLA Documentation
MLA DocumentationMLA Documentation
MLA Documentation
 
A study on performance of sector wise mutual fund schemes in India
A study on performance of sector wise mutual fund schemes in IndiaA study on performance of sector wise mutual fund schemes in India
A study on performance of sector wise mutual fund schemes in India
 
二Mt三a 7號柯婷儀[1]
二Mt三a 7號柯婷儀[1]二Mt三a 7號柯婷儀[1]
二Mt三a 7號柯婷儀[1]
 
吳威龍Ppt
吳威龍Ppt吳威龍Ppt
吳威龍Ppt
 
Albanian Res by Dr Lorenc Gordani - Slides
Albanian Res by Dr Lorenc Gordani - SlidesAlbanian Res by Dr Lorenc Gordani - Slides
Albanian Res by Dr Lorenc Gordani - Slides
 
D6.2.2 pac politics affiliation club erasmo
D6.2.2 pac politics affiliation club erasmoD6.2.2 pac politics affiliation club erasmo
D6.2.2 pac politics affiliation club erasmo
 
二幼三A 江瑜華 12號 先知小書[1]
二幼三A 江瑜華 12號 先知小書[1]二幼三A 江瑜華 12號 先知小書[1]
二幼三A 江瑜華 12號 先知小書[1]
 

Similar to Mobile Application Development with ANDROID

Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
Can Elmas
 
Android quick talk
Android quick talkAndroid quick talk
Android quick talk
SenthilKumar Selvaraj
 
Android app development
Android app developmentAndroid app development
Android app development
Techizzaa
 
Android Training
Android TrainingAndroid Training
Android Training
Tbldevelopment
 
Android Training in Chandigarh
Android Training in ChandigarhAndroid Training in Chandigarh
Android Training in Chandigarh
Arcadian Learning
 
Android Application Development.pdf
Android Application Development.pdfAndroid Application Development.pdf
Android Application Development.pdf
MohammedMuzammil99
 
Android application development
Android application developmentAndroid application development
Android application development
Dewan Razib
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
SumanKumarDey5
 
Android Application Development (2).ppt
Android Application Development (2).pptAndroid Application Development (2).ppt
Android Application Development (2).ppt
RKRahulKhatri
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
SumanKumarDey5
 
Android application development
Android application developmentAndroid application development
Android application development
MadhuprakashR1
 
Android application development
Android application developmentAndroid application development
Android application development
shanmukhashannu3
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
TarunSharma506177
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
AyushThakur97
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
SarikaDontha1
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
SHUBHAMKENDRE5
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
Jawad Mohmand
 
Android village @nullcon 2012
Android village @nullcon 2012 Android village @nullcon 2012
Android village @nullcon 2012
hakersinfo
 
Android Application Development (1).pptx
Android Application Development (1).pptxAndroid Application Development (1).pptx
Android Application Development (1).pptx
TanishSagre
 
Android Application Development GDSC DCE Darbhanga.pptx
Android Application Development GDSC DCE Darbhanga.pptxAndroid Application Development GDSC DCE Darbhanga.pptx
Android Application Development GDSC DCE Darbhanga.pptx
DCETechnicalClub
 

Similar to Mobile Application Development with ANDROID (20)

Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
Android quick talk
Android quick talkAndroid quick talk
Android quick talk
 
Android app development
Android app developmentAndroid app development
Android app development
 
Android Training
Android TrainingAndroid Training
Android Training
 
Android Training in Chandigarh
Android Training in ChandigarhAndroid Training in Chandigarh
Android Training in Chandigarh
 
Android Application Development.pdf
Android Application Development.pdfAndroid Application Development.pdf
Android Application Development.pdf
 
Android application development
Android application developmentAndroid application development
Android application development
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
 
Android Application Development (2).ppt
Android Application Development (2).pptAndroid Application Development (2).ppt
Android Application Development (2).ppt
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
 
Android application development
Android application developmentAndroid application development
Android application development
 
Android application development
Android application developmentAndroid application development
Android application development
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.ppt
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android village @nullcon 2012
Android village @nullcon 2012 Android village @nullcon 2012
Android village @nullcon 2012
 
Android Application Development (1).pptx
Android Application Development (1).pptxAndroid Application Development (1).pptx
Android Application Development (1).pptx
 
Android Application Development GDSC DCE Darbhanga.pptx
Android Application Development GDSC DCE Darbhanga.pptxAndroid Application Development GDSC DCE Darbhanga.pptx
Android Application Development GDSC DCE Darbhanga.pptx
 

Recently uploaded

Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
สมใจ จันสุกสี
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 

Recently uploaded (20)

Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 

Mobile Application Development with ANDROID

  • 1. Mobile Application Development with ANDROID
  • 2. Agenda • Mobile Application Development (MAD) • Platform architecture • Application building blocks • Development tools • Hello Android • Resources
  • 3. Few reasons to go MAD… • Smart Phones – Internet access anywhere – Social networking • Millions of mobile users • Open standards
  • 4.
  • 5. Linux Kernel • Works as a HAL • Device drivers • Memory management • Process management • Networking
  • 6. Libraries • C/C++ libraries • Interface through Java • Surface manager – Handling UI Windows • 2D and 3D graphics • Media codecs, SQLite, Browser engine
  • 7. Android Runtime • Dalvik VM – Dex files – Compact and efficient than class files – Limited memory and battery power • Core Libraries – Java 5 Std edition – Collections, I/O etc…
  • 8. Application Framework • API interface • Activity manager – manages application life cycle.
  • 9. Applications • Built in and user apps • Can replace built in apps
  • 10. Application Building Blocks • Activity • IntentReceiver • Service • ContentProvider
  • 11. Activities • Typically correspond to one UI screen • But, they can: – Be faceless – Be in a floating window – Return a value
  • 12. Intent Receivers • Components that respond to broadcast ‘Intents’ • Way to respond to external notification or alarms • Apps can invent and broadcast their own Intent
  • 13. Intents • Think of Intents as a verb and object; a description of what you want done – E.g. VIEW, CALL, PLAY etc.. • System matches Intent with Activity that can best provide the service • Activities and IntentReceivers describe what Intents they can service
  • 14. Services • Faceless components that run in the background – E.g. music player, network download etc…
  • 15. Content Providers • Enables sharing of data across applications – E.g. address book, photo gallery • Provides uniform APIs for: – querying – delete, update and insert. • Content is represented by URI and MIME type
  • 16. Development Tools • Eclipse • Android SDK developer.android.com
  • 17. The Emulator • QEMU-based ARM emulator • Runs the same image as the device • Limitations: – No Camera support
  • 19. HTC Droid Incredible Motorola Droid http://www.androidcentral.com/droid-incredible 19 http://homebiss.blogspot.com/2009/11/motorola-droid-iphone-3gs.html
  • 20. Galaxy Tablet • Retail: $250 with 2 year contract • 7-inch 1024 x 600-pixel LCD screen • 0.84 pounds • 7.48 x 4.74 x 0.47 inches • 1 GHz Coretx A8 processor • 512 MB RAM • 16 or 32 GB internal storage • Front and rear cameras 20 http://www.samsung.com/us/mobile/galaxy-tab/SCH-I800BKAVZW
  • 21. Android-Powered Microwave By Touch Revolution – at CES 2010 http://www.pocket-lint.com/news/30712/android-powered-microwave-cooking- google 21
  • 22. Google Nexus One • Retail: $530 • Not tied to single provider • 3.7-inch 800 x 400-pixel OLED screen • No support for multitouch • 512 MB of built-in flash memory • Preloaded 4 GB SD card • Ubiquitous voice recognition • 5-megapixel camera with zoom and flash • Navigation system using Google Maps and GPS http://www.wired.com/reviews/product/pr_nexus_one 22
  • 23. Hello World • Generating UIs – Views – building blocks – E.g. TextView, EditText, Button – Placed into Layouts – E.g. LinearLayout, TableLayout, AbsoluteLayout
  • 24. Producing an Android App Java javac Byte code code dx Dalvik .java .class exe classes.dex aapt Byte code <xml> Other .class files AndroidManifest.xm .apk l <str > Resources 24
  • 25. Hello Android Tutorial 25 http://developer.android.com/resources/tutorials/hello- world.html
  • 26. Important Files • src/HelloAndroid.java – Activity which is started when app executes • res/layout/main.xml – Defines & lays out widgets for the activity • res/values/strings.xml – String constants used by app • gen/R.java (Don’t touch!) – Auto-generated file with identifiers from main.xml, strings.xml, and elsewhere • AndroidManifest.xml – Declares all the app’s components – Names libraries app needs to be linked against – Identifies permissions the app expects to be granted 26
  • 27. src/HelloAndroid.java • Activity which is started when app executes 27
  • 28. res/layout/main.xml • Declares layouts & widgets for the activity 28 Tree from: http://developer.android.com/guide/topics/ui/index.html
  • 29. Interesting things to do • Android is open source • Opportunities for researchers • Get the source, compile and update the device image