Creating and working with databases in Android
Upcoming SlideShare
Loading in...5
×
 

Creating and working with databases in Android

on

  • 1,962 views

An Android database example due to Lars Vogel

An Android database example due to Lars Vogel

Statistics

Views

Total Views
1,962
Views on SlideShare
1,962
Embed Views
0

Actions

Likes
1
Downloads
71
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Creating and working with databases in Android Creating and working with databases in Android Presentation Transcript

  • 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
  • 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
  • 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
  • A database example Running the application TODOs application code Inspecting the database Using LogCat A database example TodoDatabaseAdapter CS/SE Individual Practical 4 / 40
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • A database example Running the application TODOs application code Inspecting the database Using LogCat A database example Resources CS/SE Individual Practical 14 / 40
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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