A database example   Running the application     TODOs application code   Inspecting the database    Using LogCat         ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
A database example    Running the application   TODOs application code   Inspecting the database    Using LogCat          ...
Upcoming SlideShare
Loading in...5
×

Creating and working with databases in Android

1,762

Published on

An Android database example due to Lars Vogel

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,762
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
78
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Creating and working with databases in Android

  1. 1. A database example Running the application TODOs application code Inspecting the database Using LogCat CS/SE Individual Practical Stephen Gilmore October 28, 2011 School of Informatics, University of Edinburgh CS/SE Individual Practical 1 / 40
  2. 2. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example Lars Vogel example: TODOs CS/SE Individual Practical 2 / 40
  3. 3. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example A database example CS/SE Individual Practical 3 / 40
  4. 4. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example TodoDatabaseAdapter CS/SE Individual Practical 4 / 40
  5. 5. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example TodoDatabaseHelper (onCreate()) CS/SE Individual Practical 5 / 40
  6. 6. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example TodoDatabaseHelper (onUpgrade()) CS/SE Individual Practical 6 / 40
  7. 7. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example TodoDatabaseAdapter (open(), close()) CS/SE Individual Practical 7 / 40
  8. 8. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example The create, update, and delete methods CS/SE Individual Practical 8 / 40
  9. 9. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example The insert() method CS/SE Individual Practical 9 / 40
  10. 10. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example The update() method CS/SE Individual Practical 10 / 40
  11. 11. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example The delete() method CS/SE Individual Practical 11 / 40
  12. 12. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example Fetch data CS/SE Individual Practical 12 / 40
  13. 13. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example Create content values CS/SE Individual Practical 13 / 40
  14. 14. A database example Running the application TODOs application code Inspecting the database Using LogCat A database example Resources CS/SE Individual Practical 14 / 40
  15. 15. A database example Running the application TODOs application code Inspecting the database Using LogCat Running the application Running the TODOs application CS/SE Individual Practical 15 / 40
  16. 16. A database example Running the application TODOs application code Inspecting the database Using LogCat Running the application Editing a TODO item CS/SE Individual Practical 16 / 40
  17. 17. A database example Running the application TODOs application code Inspecting the database Using LogCat Running the application Setting category to “Urgent” CS/SE Individual Practical 17 / 40
  18. 18. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code TodoDetails (imports).14.20.png CS/SE Individual Practical 18 / 40
  19. 19. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code TodoDetails (onCreate).14.31.png CS/SE Individual Practical 19 / 40
  20. 20. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code Graphical layout of todo edit.xml.32.52.png CS/SE Individual Practical 20 / 40
  21. 21. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code Text of todo edit.xml.32.48.png CS/SE Individual Practical 21 / 40
  22. 22. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code Outline of todo edit.xml.32.48.png CS/SE Individual Practical 22 / 40
  23. 23. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code TodoDetails (populateFields).14.38.png CS/SE Individual Practical 23 / 40
  24. 24. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code Save state, onPause, onResume.14.48.png CS/SE Individual Practical 24 / 40
  25. 25. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code Save state.14.56.png CS/SE Individual Practical 25 / 40
  26. 26. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code TodosOverview (onCreate).15.04.png CS/SE Individual Practical 26 / 40
  27. 27. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code Options menu, item selected.15.10.png CS/SE Individual Practical 27 / 40
  28. 28. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code Options item selected.15.22.png CS/SE Individual Practical 28 / 40
  29. 29. A database example Running the application TODOs application code Inspecting the database Using LogCat TODOs application code Accessing the insert menu CS/SE Individual Practical 29 / 40
  30. 30. A database example Running the application TODOs application code Inspecting the database Using LogCat Inspecting the database Dalvik Debug Monitor Server (DDMS).21.38.png CS/SE Individual Practical 30 / 40
  31. 31. A database example Running the application TODOs application code Inspecting the database Using LogCat Inspecting the database File explorer in DDMS CS/SE Individual Practical 31 / 40
  32. 32. A database example Running the application TODOs application code Inspecting the database Using LogCat Inspecting the database /data/data/de.vogella.android.todos/... CS/SE Individual Practical 32 / 40
  33. 33. A database example Running the application TODOs application code Inspecting the database Using LogCat Inspecting the database Pulling a file from the device CS/SE Individual Practical 33 / 40
  34. 34. A database example Running the application TODOs application code Inspecting the database Using LogCat Inspecting the database Pulling a file from the device CS/SE Individual Practical 34 / 40
  35. 35. A database example Running the application TODOs application code Inspecting the database Using LogCat Inspecting the database Get the device file CS/SE Individual Practical 35 / 40
  36. 36. A database example Running the application TODOs application code Inspecting the database Using LogCat Inspecting the database Inspecting the file with sqlite3 CS/SE Individual Practical 36 / 40
  37. 37. A database example Running the application TODOs application code Inspecting the database Using LogCat Inspecting the database Inspecting the file with sqlite3 on DiCE CS/SE Individual Practical 37 / 40
  38. 38. A database example Running the application TODOs application code Inspecting the database Using LogCat Using LogCat Debugs and errors displayed in LogCat.22.45.png CS/SE Individual Practical 38 / 40
  39. 39. A database example Running the application TODOs application code Inspecting the database Using LogCat Using LogCat Can filter messages displayed in LogCat.34.51.png CS/SE Individual Practical 39 / 40
  40. 40. A database example Running the application TODOs application code Inspecting the database Using LogCat Using LogCat Can use view menu to export messages.40.30.png CS/SE Individual Practical 40 / 40
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×