You are on page 1of 2

Android

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Storing Data Longterm


- SQLite
o used for large data sets
- SharedPreferences
o used to save smaller sets of data
o Editor - used to make changes to that activities preferences

Layout
- defined as the UI
- typically defined in XML to separate presentation from implementation
- defined in code with the setContentView method

ListView / ScrollView / GridView


- extend ViewGroup
- allow dynamically displaying data
- use adapters

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

You might also like