Mobile: Plan for Thursday 19/3 (week 12) - and preparation

 

Teachers plan for the day

 

 

Links

“Globale” data – singleton using Application class

·        http://stackoverflow.com/questions/4208886/using-the-android-application-class-to-persist-data

·        http://androidexample.com/Global_Variable_Or_Application_Context_Variable_-_Android_Example/index.php?view=article_discription&aid=114&aaid=136

·        http://www.developerphil.com/dont-store-data-in-the-application-object/

 

Threads:

Der er her flere forskellige muligheder for at finde eksempler og fordybe sig

 

SQLite:

·         example: Android_SQLiteDemo.zip  eclipse format
 

·         More examples – this is using cursor

o    Small example with raw-sql & cursor
http://stackoverflow.com/questions/5457699/cursor-adapter-and-sqlite-example

o    Expanded example with all code using cursor
http://www.mysamplecode.com/2012/07/android-listview-cursoradapter-sqlite.html

o    Another small example withraw-sql & cursor
http://andromeda709.blogspot.dk/2012/02/sqlite-simple-example.html

o    Another example using cursor from phone book  retrieved by contentprovider:
http://stackoverflow.com/questions/9477335/how-to-access-contacts-data-through-content-provider

o              More usefull links about cursor & listview:
http://stackoverflow.com/questions/12077955/android-using-simplecursoradapter-to-get-data-from-database-to-listview 
http://thinkandroid.wordpress.com/2010/01/09/simplecursoradapters-and-listviews/ 
http://www.mysamplecode.com/2012/07/android-listview-cursoradapter-sqlite.html 
http://stackoverflow.com/questions/13631075/listview-with-cursoradapter

 

Slides and examples from the lecture is accessible here: http://bjoerks.net/klasser/Mobile_2015_Foraar/materials/
In this lecture produced: