Difference between revisions of "Android : Lab"

From CDOT Wiki
Jump to: navigation, search
Line 3: Line 3:
  
  
Step 1. Build the First Activity.
+
<u>Step 1. Build the First Activity.</u>
  
 
[https://zenit.senecac.on.ca/svn/ecl500/Lectures/trunk/LAB_Android_Example_Steps/Step_1/ ShowContacts Activity class]
 
[https://zenit.senecac.on.ca/svn/ecl500/Lectures/trunk/LAB_Android_Example_Steps/Step_1/ ShowContacts Activity class]
  
  
Step 2. Add Options Menu
+
<u>Step 2. Add Options Menu</u>
[https://zenit.senecac.on.ca/svn/ecl500/Lectures/trunk/LAB_Android_Example_Steps/Step_1/ Override onCreateOptionsMenu and onOptionsItemSelected] almost empty
 
  
Step 3. Add a new activity: the Edit Activity.
+
[https://zenit.senecac.on.ca/svn/ecl500/Lectures/trunk/LAB_Android_Example_Steps/Step_2/ Override onCreateOptionsMenu and onOptionsItemSelected] almost empty
  
 +
 +
<u>Step 3. Add a new activity: the Edit Activity.</u>
 +
 +
[https://zenit.senecac.on.ca/svn/ecl500/Lectures/trunk/LAB_Android_Example_Steps/Step_3/ Add Edit Activity & Create an Intent on OptionsItemSelected]
  
 
Step 4. Define a Helper for SQLite  
 
Step 4. Define a Helper for SQLite  
Line 24: Line 27:
  
 
<u>'''[https://zenit.senecac.on.ca/svn/ecl500/Lectures/trunk/LAB_Android_Example_Steps/ Here is the code for the steps described above]'''</u>
 
<u>'''[https://zenit.senecac.on.ca/svn/ecl500/Lectures/trunk/LAB_Android_Example_Steps/ Here is the code for the steps described above]'''</u>
 
 
 
 
|criteria=To be determined}}
 

Revision as of 08:29, 19 March 2011

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. Define a Helper for SQLite


Step 5. Write and Display data from DB.


to be continued


Here is the code for the steps described above