SlideShare a Scribd company logo
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
Ad

Recommended

Try PostgreSQL on linux
Try PostgreSQL on linux
Aey Unthika
 
Example Database normal form
Example Database normal form
Aey Unthika
 
Unilever
Unilever
Ghulam Baddar
 
Database Proposal
Database Proposal
Melissa Kaylor
 
Mis in unilever
Mis in unilever
Faiza Javaid
 
DBMS an Example
DBMS an Example
Dr. C.V. Suresh Babu
 
Unilever - History, Evolution, Present and the Future
Unilever - History, Evolution, Present and the Future
Greg Thain
 
Android-Chapter17-SQL-Data persistency in android databases
Android-Chapter17-SQL-Data persistency in android databases
RyanAguirre5
 
Beginning Android development
Beginning Android development
Stephen Gilmore
 
Android Level 2
Android Level 2
DevMix
 
Sq lite database
Sq lite database
AYESHA JAVED
 
Android sq lite-chapter 22
Android sq lite-chapter 22
Dr. Ramkumar Lakshminarayanan
 
Android Study Jams Session 5
Android Study Jams Session 5
SadhanaParameswaran
 
Session 6#
Session 6#
Mohamed Samir
 
Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1
Panduka Bandara
 
Database Refactoring
Database Refactoring
Anton Keks
 
Android App Development 05 : Saving Data
Android App Development 05 : Saving Data
Anuchit Chalothorn
 
System Analysis And Design
System Analysis And Design
Lijo Stalin
 
Shshsjsjsjs-4 - Copdjsjjsjsjsjakakakaaky.pptx
Shshsjsjsjs-4 - Copdjsjjsjsjsjakakakaaky.pptx
086ChintanPatel1
 
09.1. Android - Local Database (Sqlite)
09.1. Android - Local Database (Sqlite)
Oum Saokosal
 
Portfolio
Portfolio
jwjablonski
 
INTRODUCTION TO Database Management System (DBMS)
INTRODUCTION TO Database Management System (DBMS)
Prof Ansari
 
DBMS
DBMS
Anjana Mohanan
 
Working with databases in Android
Working with databases in Android
Stephen Gilmore
 
android sqlite
android sqlite
Deepa Rani
 
Database layer in php
Database layer in php
d3p3d
 
uday_kumar_bingi_resume
uday_kumar_bingi_resume
Uday Kumar Bingi
 
Session 3 beccse
Session 3 beccse
vin123456gangal
 
Feedback on Part 1 of the CSLP
Feedback on Part 1 of the CSLP
Stephen Gilmore
 
Feedback on Part 1 of the Software Engineering Large Practical
Feedback on Part 1 of the Software Engineering Large Practical
Stephen Gilmore
 

More Related Content

Similar to Creating and working with databases in Android (20)

Beginning Android development
Beginning Android development
Stephen Gilmore
 
Android Level 2
Android Level 2
DevMix
 
Sq lite database
Sq lite database
AYESHA JAVED
 
Android sq lite-chapter 22
Android sq lite-chapter 22
Dr. Ramkumar Lakshminarayanan
 
Android Study Jams Session 5
Android Study Jams Session 5
SadhanaParameswaran
 
Session 6#
Session 6#
Mohamed Samir
 
Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1
Panduka Bandara
 
Database Refactoring
Database Refactoring
Anton Keks
 
Android App Development 05 : Saving Data
Android App Development 05 : Saving Data
Anuchit Chalothorn
 
System Analysis And Design
System Analysis And Design
Lijo Stalin
 
Shshsjsjsjs-4 - Copdjsjjsjsjsjakakakaaky.pptx
Shshsjsjsjs-4 - Copdjsjjsjsjsjakakakaaky.pptx
086ChintanPatel1
 
09.1. Android - Local Database (Sqlite)
09.1. Android - Local Database (Sqlite)
Oum Saokosal
 
Portfolio
Portfolio
jwjablonski
 
INTRODUCTION TO Database Management System (DBMS)
INTRODUCTION TO Database Management System (DBMS)
Prof Ansari
 
DBMS
DBMS
Anjana Mohanan
 
Working with databases in Android
Working with databases in Android
Stephen Gilmore
 
android sqlite
android sqlite
Deepa Rani
 
Database layer in php
Database layer in php
d3p3d
 
uday_kumar_bingi_resume
uday_kumar_bingi_resume
Uday Kumar Bingi
 
Session 3 beccse
Session 3 beccse
vin123456gangal
 
Beginning Android development
Beginning Android development
Stephen Gilmore
 
Android Level 2
Android Level 2
DevMix
 
Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1
Panduka Bandara
 
Database Refactoring
Database Refactoring
Anton Keks
 
Android App Development 05 : Saving Data
Android App Development 05 : Saving Data
Anuchit Chalothorn
 
System Analysis And Design
System Analysis And Design
Lijo Stalin
 
Shshsjsjsjs-4 - Copdjsjjsjsjsjakakakaaky.pptx
Shshsjsjsjs-4 - Copdjsjjsjsjsjakakakaaky.pptx
086ChintanPatel1
 
09.1. Android - Local Database (Sqlite)
09.1. Android - Local Database (Sqlite)
Oum Saokosal
 
INTRODUCTION TO Database Management System (DBMS)
INTRODUCTION TO Database Management System (DBMS)
Prof Ansari
 
Working with databases in Android
Working with databases in Android
Stephen Gilmore
 
android sqlite
android sqlite
Deepa Rani
 
Database layer in php
Database layer in php
d3p3d
 

More from Stephen Gilmore (20)

Feedback on Part 1 of the CSLP
Feedback on Part 1 of the CSLP
Stephen Gilmore
 
Feedback on Part 1 of the Software Engineering Large Practical
Feedback on Part 1 of the Software Engineering Large Practical
Stephen Gilmore
 
Arrays in Objective-C
Arrays in Objective-C
Stephen Gilmore
 
More Stochastic Simulation Examples
More Stochastic Simulation Examples
Stephen Gilmore
 
Testing Android apps with Robotium
Testing Android apps with Robotium
Stephen Gilmore
 
Common Java problems when developing with Android
Common Java problems when developing with Android
Stephen Gilmore
 
Quick quiz on Objective-C
Quick quiz on Objective-C
Stephen Gilmore
 
Getting started with Xcode
Getting started with Xcode
Stephen Gilmore
 
Crash Course in Objective-C
Crash Course in Objective-C
Stephen Gilmore
 
SELP: Debugging, AVDs and Manifests
SELP: Debugging, AVDs and Manifests
Stephen Gilmore
 
The Stochastic Simulation Algorithm
The Stochastic Simulation Algorithm
Stephen Gilmore
 
Beginning Android Development
Beginning Android Development
Stephen Gilmore
 
Computer Science Large Practical coursework
Computer Science Large Practical coursework
Stephen Gilmore
 
Software Engineering Large Practical coursework
Software Engineering Large Practical coursework
Stephen Gilmore
 
Introduction to the CSLP and the SELP
Introduction to the CSLP and the SELP
Stephen Gilmore
 
Fixing errors in Android Java applications
Fixing errors in Android Java applications
Stephen Gilmore
 
Feedback on Part 1 of the Individual Practical
Feedback on Part 1 of the Individual Practical
Stephen Gilmore
 
Continuing Android development
Continuing Android development
Stephen Gilmore
 
Project management for the individual practical
Project management for the individual practical
Stephen Gilmore
 
CS/SE Individual practical - DDMS and AVD
CS/SE Individual practical - DDMS and AVD
Stephen Gilmore
 
Feedback on Part 1 of the CSLP
Feedback on Part 1 of the CSLP
Stephen Gilmore
 
Feedback on Part 1 of the Software Engineering Large Practical
Feedback on Part 1 of the Software Engineering Large Practical
Stephen Gilmore
 
More Stochastic Simulation Examples
More Stochastic Simulation Examples
Stephen Gilmore
 
Testing Android apps with Robotium
Testing Android apps with Robotium
Stephen Gilmore
 
Common Java problems when developing with Android
Common Java problems when developing with Android
Stephen Gilmore
 
Quick quiz on Objective-C
Quick quiz on Objective-C
Stephen Gilmore
 
Getting started with Xcode
Getting started with Xcode
Stephen Gilmore
 
Crash Course in Objective-C
Crash Course in Objective-C
Stephen Gilmore
 
SELP: Debugging, AVDs and Manifests
SELP: Debugging, AVDs and Manifests
Stephen Gilmore
 
The Stochastic Simulation Algorithm
The Stochastic Simulation Algorithm
Stephen Gilmore
 
Beginning Android Development
Beginning Android Development
Stephen Gilmore
 
Computer Science Large Practical coursework
Computer Science Large Practical coursework
Stephen Gilmore
 
Software Engineering Large Practical coursework
Software Engineering Large Practical coursework
Stephen Gilmore
 
Introduction to the CSLP and the SELP
Introduction to the CSLP and the SELP
Stephen Gilmore
 
Fixing errors in Android Java applications
Fixing errors in Android Java applications
Stephen Gilmore
 
Feedback on Part 1 of the Individual Practical
Feedback on Part 1 of the Individual Practical
Stephen Gilmore
 
Continuing Android development
Continuing Android development
Stephen Gilmore
 
Project management for the individual practical
Project management for the individual practical
Stephen Gilmore
 
CS/SE Individual practical - DDMS and AVD
CS/SE Individual practical - DDMS and AVD
Stephen Gilmore
 
Ad

Recently uploaded (20)

Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Quantum AI: Where Impossible Becomes Probable
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Daily Lesson Log MATATAG ICT TEchnology 8
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
The Growing Value and Application of FME & GenAI
The Growing Value and Application of FME & GenAI
Safe Software
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Quantum AI: Where Impossible Becomes Probable
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Daily Lesson Log MATATAG ICT TEchnology 8
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
The Growing Value and Application of FME & GenAI
The Growing Value and Application of FME & GenAI
Safe Software
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
Ad

Creating and working with databases in Android

  • 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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