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

More Related Content

Similar to Creating and working with databases in Android

Mining Code Examples with Descriptive Text from Software Artifacts
Mining Code Examples with Descriptive Text from Software ArtifactsMining Code Examples with Descriptive Text from Software Artifacts
Mining Code Examples with Descriptive Text from Software Artifacts
Preetha Chatterjee
 
Spring framework
Spring frameworkSpring framework
Spring frameworksrmelody
 
Log Data Analysis Platform by Valentin Kropov
Log Data Analysis Platform by Valentin KropovLog Data Analysis Platform by Valentin Kropov
Log Data Analysis Platform by Valentin Kropov
SoftServe
 
Log Data Analysis Platform
Log Data Analysis PlatformLog Data Analysis Platform
Log Data Analysis Platform
Valentin Kropov
 
Data stage
Data stageData stage
Data stage
Amit Sharma
 
Data stage docx
Data stage docxData stage docx
Data stage docx
Amit Sharma
 
Datastage coursecontent
Datastage coursecontentDatastage coursecontent
Datastage coursecontent
Amit Sharma
 
Data access
Data accessData access
Data access
Joshua Yoon
 
Trinug - repository pattern
Trinug - repository patternTrinug - repository pattern
Trinug - repository pattern
Bhuvnesh Bhatt
 
Organizing the Data Chaos of Scientists
Organizing the Data Chaos of ScientistsOrganizing the Data Chaos of Scientists
Organizing the Data Chaos of Scientists
Andreas Schreiber
 
DataFinder: A Python Application for Scientific Data Management
DataFinder: A Python Application for Scientific Data ManagementDataFinder: A Python Application for Scientific Data Management
DataFinder: A Python Application for Scientific Data Management
Andreas Schreiber
 
Building a Testable Data Access Layer
Building a Testable Data Access LayerBuilding a Testable Data Access Layer
Building a Testable Data Access Layer
Todd Anglin
 
Datastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya ElearningDatastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya Elearningshanmukha rao dondapati
 
Data provenance in Hopsworks
Data provenance in HopsworksData provenance in Hopsworks
Data provenance in Hopsworks
Alexandru Adrian Ormenisan
 
Green Your Apps (at Over The Air 2011)
Green Your Apps (at Over The Air 2011)Green Your Apps (at Over The Air 2011)
Green Your Apps (at Over The Air 2011)
AMEE
 
Ibm data stage implementing etl solution using ibm datastage
Ibm data stage  implementing etl solution using ibm datastageIbm data stage  implementing etl solution using ibm datastage
Ibm data stage implementing etl solution using ibm datastage
bispsolutions
 
Datastage coursecontent
Datastage coursecontentDatastage coursecontent
Datastage coursecontentAmit Sharma
 
HTAP Queries
HTAP QueriesHTAP Queries
HTAP Queries
Atif Shaikh
 

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

Mining Code Examples with Descriptive Text from Software Artifacts
Mining Code Examples with Descriptive Text from Software ArtifactsMining Code Examples with Descriptive Text from Software Artifacts
Mining Code Examples with Descriptive Text from Software Artifacts
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Log Data Analysis Platform by Valentin Kropov
Log Data Analysis Platform by Valentin KropovLog Data Analysis Platform by Valentin Kropov
Log Data Analysis Platform by Valentin Kropov
 
Log Data Analysis Platform
Log Data Analysis PlatformLog Data Analysis Platform
Log Data Analysis Platform
 
Data stage
Data stageData stage
Data stage
 
Data stage docx
Data stage docxData stage docx
Data stage docx
 
Datastage coursecontent
Datastage coursecontentDatastage coursecontent
Datastage coursecontent
 
Data access
Data accessData access
Data access
 
Trinug - repository pattern
Trinug - repository patternTrinug - repository pattern
Trinug - repository pattern
 
Organizing the Data Chaos of Scientists
Organizing the Data Chaos of ScientistsOrganizing the Data Chaos of Scientists
Organizing the Data Chaos of Scientists
 
DataFinder: A Python Application for Scientific Data Management
DataFinder: A Python Application for Scientific Data ManagementDataFinder: A Python Application for Scientific Data Management
DataFinder: A Python Application for Scientific Data Management
 
Tu1 1 5l
Tu1 1 5lTu1 1 5l
Tu1 1 5l
 
Building a Testable Data Access Layer
Building a Testable Data Access LayerBuilding a Testable Data Access Layer
Building a Testable Data Access Layer
 
Icoper webinar
Icoper webinar Icoper webinar
Icoper webinar
 
Datastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya ElearningDatastage Online Training @ Adithya Elearning
Datastage Online Training @ Adithya Elearning
 
Data provenance in Hopsworks
Data provenance in HopsworksData provenance in Hopsworks
Data provenance in Hopsworks
 
Green Your Apps (at Over The Air 2011)
Green Your Apps (at Over The Air 2011)Green Your Apps (at Over The Air 2011)
Green Your Apps (at Over The Air 2011)
 
Ibm data stage implementing etl solution using ibm datastage
Ibm data stage  implementing etl solution using ibm datastageIbm data stage  implementing etl solution using ibm datastage
Ibm data stage implementing etl solution using ibm datastage
 
Datastage coursecontent
Datastage coursecontentDatastage coursecontent
Datastage coursecontent
 
HTAP Queries
HTAP QueriesHTAP Queries
HTAP Queries
 

More from Stephen Gilmore

Feedback on Part 1 of the CSLP
Feedback on Part 1 of the CSLPFeedback 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 PracticalFeedback 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-CArrays in Objective-C
Arrays in Objective-C
Stephen Gilmore
 
More Stochastic Simulation Examples
More Stochastic Simulation ExamplesMore Stochastic Simulation Examples
More Stochastic Simulation ExamplesStephen Gilmore
 
Testing Android apps with Robotium
Testing Android apps with RobotiumTesting Android apps with Robotium
Testing Android apps with RobotiumStephen Gilmore
 
Common Java problems when developing with Android
Common Java problems when developing with AndroidCommon Java problems when developing with Android
Common Java problems when developing with Android
Stephen Gilmore
 
Quick quiz on Objective-C
Quick quiz on Objective-CQuick quiz on Objective-C
Quick quiz on Objective-C
Stephen Gilmore
 
Getting started with Xcode
Getting started with XcodeGetting started with Xcode
Getting started with Xcode
Stephen Gilmore
 
Working with databases in Android
Working with databases in AndroidWorking with databases in Android
Working with databases in Android
Stephen Gilmore
 
Crash Course in Objective-C
Crash Course in Objective-CCrash Course in Objective-C
Crash Course in Objective-C
Stephen Gilmore
 
SELP: Debugging, AVDs and Manifests
SELP: Debugging, AVDs and ManifestsSELP: Debugging, AVDs and Manifests
SELP: Debugging, AVDs and Manifests
Stephen Gilmore
 
The Stochastic Simulation Algorithm
The Stochastic Simulation AlgorithmThe Stochastic Simulation Algorithm
The Stochastic Simulation Algorithm
Stephen Gilmore
 
Beginning Android Development
Beginning Android DevelopmentBeginning Android Development
Beginning Android Development
Stephen Gilmore
 
Computer Science Large Practical coursework
Computer Science Large Practical courseworkComputer Science Large Practical coursework
Computer Science Large Practical coursework
Stephen Gilmore
 
Software Engineering Large Practical coursework
Software Engineering Large Practical courseworkSoftware Engineering Large Practical coursework
Software Engineering Large Practical coursework
Stephen Gilmore
 
Introduction to the CSLP and the SELP
Introduction to the CSLP and the SELPIntroduction 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 applicationsFixing errors in Android Java applications
Fixing errors in Android Java applicationsStephen Gilmore
 
Feedback on Part 1 of the Individual Practical
Feedback on Part 1 of the Individual PracticalFeedback on Part 1 of the Individual Practical
Feedback on Part 1 of the Individual Practical
Stephen Gilmore
 
Continuing Android development
Continuing Android developmentContinuing Android development
Continuing Android developmentStephen Gilmore
 
Project management for the individual practical
Project management for the individual practicalProject management for the individual practical
Project management for the individual practicalStephen Gilmore
 

More from Stephen Gilmore (20)

Feedback on Part 1 of the CSLP
Feedback on Part 1 of the CSLPFeedback on Part 1 of the CSLP
Feedback on Part 1 of the CSLP
 
Feedback on Part 1 of the Software Engineering Large Practical
Feedback on Part 1 of the Software Engineering Large PracticalFeedback on Part 1 of the Software Engineering Large Practical
Feedback on Part 1 of the Software Engineering Large Practical
 
Arrays in Objective-C
Arrays in Objective-CArrays in Objective-C
Arrays in Objective-C
 
More Stochastic Simulation Examples
More Stochastic Simulation ExamplesMore Stochastic Simulation Examples
More Stochastic Simulation Examples
 
Testing Android apps with Robotium
Testing Android apps with RobotiumTesting Android apps with Robotium
Testing Android apps with Robotium
 
Common Java problems when developing with Android
Common Java problems when developing with AndroidCommon Java problems when developing with Android
Common Java problems when developing with Android
 
Quick quiz on Objective-C
Quick quiz on Objective-CQuick quiz on Objective-C
Quick quiz on Objective-C
 
Getting started with Xcode
Getting started with XcodeGetting started with Xcode
Getting started with Xcode
 
Working with databases in Android
Working with databases in AndroidWorking with databases in Android
Working with databases in Android
 
Crash Course in Objective-C
Crash Course in Objective-CCrash Course in Objective-C
Crash Course in Objective-C
 
SELP: Debugging, AVDs and Manifests
SELP: Debugging, AVDs and ManifestsSELP: Debugging, AVDs and Manifests
SELP: Debugging, AVDs and Manifests
 
The Stochastic Simulation Algorithm
The Stochastic Simulation AlgorithmThe Stochastic Simulation Algorithm
The Stochastic Simulation Algorithm
 
Beginning Android Development
Beginning Android DevelopmentBeginning Android Development
Beginning Android Development
 
Computer Science Large Practical coursework
Computer Science Large Practical courseworkComputer Science Large Practical coursework
Computer Science Large Practical coursework
 
Software Engineering Large Practical coursework
Software Engineering Large Practical courseworkSoftware Engineering Large Practical coursework
Software Engineering Large Practical coursework
 
Introduction to the CSLP and the SELP
Introduction to the CSLP and the SELPIntroduction to the CSLP and the SELP
Introduction to the CSLP and the SELP
 
Fixing errors in Android Java applications
Fixing errors in Android Java applicationsFixing errors in Android Java applications
Fixing errors in Android Java applications
 
Feedback on Part 1 of the Individual Practical
Feedback on Part 1 of the Individual PracticalFeedback on Part 1 of the Individual Practical
Feedback on Part 1 of the Individual Practical
 
Continuing Android development
Continuing Android developmentContinuing Android development
Continuing Android development
 
Project management for the individual practical
Project management for the individual practicalProject management for the individual practical
Project management for the individual practical
 

Recently uploaded

By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 

Recently uploaded (20)

By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 

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