Professional Documents
Culture Documents
Notes
Notes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Activity
- provides an interface between the application and the screen
- has four states
o active
o paused
o stopped
o destroyed
Intent
- transfers data between activities or other applications
- intents can be returned to the activity that origionally sent the intent
with the
onActivityResult and setResult methods
Toast
- a pop-up message that is useful for notifying the user of a change or
debugging
Saving States
- uses Bundle objects to temporarly store data
- onSaveInstanceState and onRestoreInstanceState
- Bundle
o contains name / value pairs
Layout
- defined as the UI
- typically defined in XML to separate presentation from implementation
- defined in code with the setContentView method
Widget
- means a bunch of different things
- in development widgets are used in the presentation layer as buttons,
textboxes, ext.
Styles
- define the look of the presentation layer
- xml resource file
Theme
- a style applied to an activity or a whole application
- use the AndroidManifest.xml file
- removing the title bar is done with themes
- themes change between versions so using version specific values folders is
necessary