Android : Lab

From CDOT Wiki
Revision as of 07:22, 1 April 2011 by Jordan.anastasiade (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Here are few steps to guide you in the process of building an Android application:

Step 1. Build the First Activity.

ShowContacts Activity class

Step 2. Add Options Menu

Override onCreateOptionsMenu and onOptionsItemSelected almost empty

Step 3. Add a new activity: the Edit Activity.

Add Edit Activity & Create an Intent on OptionsItemSelected

Step 4. Create a DB class for using SQLite

Create an inner class of MyDbHelper that extends SQLiteOpenHelper

Step 5. Example of app failure trying to Write and Display data from DB.

Common errors in writing database adapters