Dan Armendariz
Computer Science S-76

Notes on source code for Android.

  //////////////
 // Activity //
//////////////


Activity01
 - Generating a layout programmatically.

Activity02
 - Generating a layout using XML (default Hello, World app in Eclipse).

Activity03
 - Defining a LinearLayout via XML

Activity04
 - Demonstrating some layout options: layout_*, gravity, weights

Activity05
 - Defining a TableLayout

Activity06
 - Defining a RelativeLayout

Activity07
 - Uses the same layout as Activity06, but now we're connecting objects in code to layout.
 - Activating buttons via event handlers
 - Basic user notifications via toast

Activity08
 - Another way to implement event handlers without additional object creation load.

Activity09
 - A better dialog
 - Accessing data from a text box

Activity10
 - Displaying data in a list with AdapterView



  /////////////
 // Intents //
/////////////


Intents01
- Simple resource usage via colors.xml

Intents02
- Localization example, using res/values-en vs res/values-es

Intents03
- Using image resources.

Intents04
- Using sound resources by playing, pausing, restarting, and responding to completed sound.

Intents05
- Creating an options menu; user can activate by clicking MENU key on device.

Intents06
- Using Intents to start a second Activity

Intents07
- Requesting and starting another app's activity (eg, maps, SMS, email, phone) from your own.

Intents08
- Combining many previous examples into a photo gallery app; multiple activities, resources, passing data via intents.

  /////////////
 // Storage //
/////////////


Storage02 (from lecture 5 source)
- Saving simple state and data among multiple activities in the same application using SharedPreferences.

Storage03
- Storing data in a SQLite database.


  /////////////
 // Threads //
/////////////


Threads01
- Demonstrating Android's single-threaded model, Handler/Runnable adherence to that model, and the dreaded Application Not Responding (ANR) dialog. 

Threads02
- Fixing ANR issues by creating a background task.

Threads03
- A sample photo gallery application, based on loosely on Intents08, that now pulls images from the Internet and supports lazy loading via a background thread.