L_2_17_Android_Application_Fundamentals - Android...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Android’Applica,on’ Fundamentals’
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Android’Applica,ons Android’applica,ons’are’wri4en’in’Java’ The’compiled’Java’code’(along’with’any’data’and’resource’ fles’required’by’the’applica,on)’is’bundled’by’the’aapt’tool’ into’an’Android’package’(.apk) COMP 4521 (Muppala) Android Overview 2 .apk’package’ Java’classes’ Data’fles’ Resources’
Image of page 2
Android’Applica,ons’ Each’Android’applica,on’lives’in’its’own’world:’ Runs’in’its’own’Linux’process’ Started’when’any’of’the’applica,on’code’needs’to’be’executed’ Shuts’down’when’no’longer’needed’or’system’resources’are’required’by’ other’applica,ons’ Each’process’has’its’own’virtual’machine’(sandboxing)’ Applica,on’code’runs’in’isola,on’from’all’other’applica,ons’ Each’applica,on’assigned’a’unique’Linux’user’ID’ COMP 4521 (Muppala) Android Overview 3
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Applica,on’Components One’applica,on’can’make’use’of’elements’of’other’ applica,ons’ Applica,ons’are’composed’of’parts’(components)’that’can’be’started’ up’when’the’need’arises±’and’instan,ate’the’Java’objects’for’that’part’ Android’applica,ons’do’not’have’a’single’entry’point’(e.g.’no’main()’ func,on).’ Essen,al’components’that’the’system’can’instan,ate’and’run’as’ needed’ COMP 4521 (Muppala) Android Overview 4
Image of page 4
Applica,on’Components’ Four’basic’components:’Ac,vi,es±’Services±’ Broadcast’Receivers±’Content’Providers’ Ac,vi,es’ Services’ Broadcast’Receivers’ Content’Providers’ Applica,on’ Components’ COMP 4521 (Muppala) Android Overview 5
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Ac,vity An’ac,vity’is’visual’UI’for’one’ endeavour’the’user’can’ undertake: Extends’the’ Activity ’base’class Displays’user’interface’controls’(views) Provides’for’user’interac,on COMP 4521 (Muppala) Android Overview 6
Image of page 6
Ac,vity’(Contd.) An’applica,on’typically’consists’of’one’or’more’ac,vi,es: Each’ac,vity’has’a’default’window’to’draw’in’(the’UI)’ One’ac,vity’usually’marked’as’the’main’ac,vity’(started’when’the’ applica,on’begins)
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern