MAP524/DPS924 Lab 5

From CDOT Wiki
Revision as of 14:09, 14 February 2016 by Nagashashank Polugari (talk | contribs) (Part A)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Due: in the lab period, need professor sign-off.

Part A

Create a simple Android app, named My List that continues from the example given in this week's lecture notes. Once you have the basic app running correctly from the notes, make these modifications:

  1. When the user selects a colour, change the background to that colour.
  2. Change the context menu to the following two items:
    1. Write colour to SDCard
    2. Read colour from SDCard
  3. Selecting "write" will write the current colour to the SDCard.
  4. Selecting "read" will read the colour from the SDCard and set the background to that colour.
  5. When the app starts it should get the colour from the SDCard.
  6. If no colour has yet been written to the SDCard then let the background colour default.
  7. When your app is working please complete PART B.

Part B

Explain the purpose/function of each of the following in your own words (that means not someone else's words), in your labbook:

  1. res/values/arrays.xml file
  2. ArrayAdapter class
  3. AdapterView class
  4. Toast class
  5. registerForContextMenu() method
  6. ContextMenu class