SlideShare une entreprise Scribd logo
1  sur  29
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

Contenu connexe

En vedette

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
 
ใบงานท 2
ใบงานท   2ใบงานท   2
ใบงานท 2Robotto' Data
 
第一組婚姻報告
第一組婚姻報告第一組婚姻報告
第一組婚姻報告輝 哲
 
роль русского языка, литературы, истории и обществознания в современном обще...
роль русского языка, литературы, истории и обществознания  в современном обще...роль русского языка, литературы, истории и обществознания  в современном обще...
роль русского языка, литературы, истории и обществознания в современном обще...Alexander Denisov
 
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 2012Lynda819
 
15劉淑蓉.ptt
15劉淑蓉.ptt15劉淑蓉.ptt
15劉淑蓉.ptt輝 哲
 
MLA Documentation
MLA DocumentationMLA Documentation
MLA Documentationapcoyote
 
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 Indiawwgreatmutha
 
二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 - SlidesLorenc 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 erasmoLearn Politics
 
二幼三A 江瑜華 12號 先知小書[1]
二幼三A 江瑜華 12號 先知小書[1]二幼三A 江瑜華 12號 先知小書[1]
二幼三A 江瑜華 12號 先知小書[1]輝 哲
 

En vedette (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]
 

Similaire à Mobile Application Development with ANDROID

Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android DevelopmentCan Elmas
 
Android app development
Android app developmentAndroid app development
Android app developmentTechizzaa
 
Android Training in Chandigarh
Android Training in ChandigarhAndroid Training in Chandigarh
Android Training in ChandigarhArcadian Learning
 
Android Application Development.pdf
Android Application Development.pdfAndroid Application Development.pdf
Android Application Development.pdfMohammedMuzammil99
 
Android application development
Android application developmentAndroid application development
Android application developmentDewan Razib
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.pptSumanKumarDey5
 
Android Application Development (2).ppt
Android Application Development (2).pptAndroid Application Development (2).ppt
Android Application Development (2).pptRKRahulKhatri
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.pptSumanKumarDey5
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.pptSarikaDontha1
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.pptSHUBHAMKENDRE5
 
Android application development
Android application developmentAndroid application development
Android application developmentMadhuprakashR1
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.pptTarunSharma506177
 
Android application development
Android application developmentAndroid application development
Android application developmentshanmukhashannu3
 
Android Application Development.ppt
Android Application Development.pptAndroid Application Development.ppt
Android Application Development.pptAyushThakur97
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidJawad 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).pptxTanishSagre
 
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.pptxDCETechnicalClub
 

Similaire à 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.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
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
Android application developmentAndroid application development
Android application development
 
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
 

Dernier

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Dernier (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

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