Skip to content

android sqlite demo sample, with sqlite/listView/adapter/dbHelper, multi activity, so cool.

License

Notifications You must be signed in to change notification settings

Yuiffy/android-sqlite-demo

Repository files navigation

android-sqlite-demo

android sqlite demo sample, use sqlite in multi activity.

main activity can enter 2 activity: add Player activity/ show players activity.

in [add Player activity], can add player name, and show all players' name.

in [show players activity], can show all players.

use sqlite / sqliteDbHelper / ListView / ArrayAdapter.

is so simple, good to know it!

use sqlite, simplely, no multi-thread, though the android docs said "Note: Because they can be long-running, be sure that you call getWritableDatabase() or getReadableDatabase() in a background thread, such as with AsyncTask or IntentService."

to see async, see https://github.com/Yuiffy/android-CursorLoader-demo , it use ContentProvider/ CursorLoader.

About

android sqlite demo sample, with sqlite/listView/adapter/dbHelper, multi activity, so cool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages