Persistance Android. Adding Persistance SQL Refresher Understand how to create and migrate SQLLite database with android APIs. – Get all tasks – Add a.

Slides:



Advertisements
Similar presentations
Implementing Tableau Server in an Enterprise Environment
Advertisements

Bruce Scharlau, University of Aberdeen, 2012 Data storage options for mobiles Mobile Computing.
HalFILE 2.1 New Technical Features Session I-b. Full ODBC Application Microsoft Access has been eliminated New ODBC databases File Data Source support.
Utility SQL Bin (v3.3). Agenda  Purpose  Target User  Benefits  System Requirement  User Guide Introduction Navigation Add New SQL Add New Version.
SQLite is a software library. It is: self-contained + Serverless + zero-configuration transactional = SQL database engine. Most widely deployed. The source.
Moving Data Lesson 23. Skills Matrix Moving Data When populating tables by inserting data, you will discover that data can come from various sources.
Cross-curricular Assignment Using your case study…
Materialized views1 Materialized views (snapshot tables) Using Oracle.
SQLite and the.NET Framework This PPT:
SQLite 1 CS440. What is SQLite?  Open Source Database embedded in Android  SQL syntax  Requires small memory at runtime (250 Kbytes)  Lightweight.
Phonegap Bridge – File System CIS 136 Building Mobile Apps 1.
Data Access Patterns. Motivation Most software systems require persistent data (i.e. data that persists between program executions). In general, distributing.
ContentProviders. SQLite Database SQLite is a software library that implements aself- contained, serverless,zero- configuration,transactionalSQL database.
SSIS Over DTS Sagayaraj Putti (139460). 5 September What is DTS?  Data Transformation Services (DTS)  DTS is a set of objects and utilities that.
Agenda Journalling More Embedded SQL. Journalling.
PHP Data Object (PDO) Khaled Al-Sham’aa. What is PDO? PDO is a PHP extension to formalise PHP's database connections by creating a uniform interface.
ContentProviders. SQLite Database SQLite is a software library that implements aself- contained, serverless,zero- configuration,transactionalSQL database.
ANDROID CONTENT PROVIDERS Peter Liu School of ICT, Seneca College.
Data File Access API : Under the Hood Simon Horwith CTO Etrilogy Ltd.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
DataFlex Connectivity Kit for Pervasive.SQL Eddy Kleinjan.
Android Storage. There are several options for storage of data with Android We can put data into a preferences file. We can put data into a ‘normal’ file.
Jennifer Widom Constraints & Triggers Triggers – Demo (Part 1)
9 Persistence - SQLite CSNB544 Mobile Application Development Thanks to Utexas Austin.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Phonegap Bridge – File System CIS 136 Building Mobile Apps 1.
PHP Workshop ‹#› PHP Data Object (PDO). PHP Workshop ‹#› What is PDO? PDO is a PHP extension to formalise PHP's database connections by creating a uniform.
Mobile Software Development ISCG 7424 Department of Computing UNITEC John Casey and Richard Rabeder SQLite and Permissions.
Database Design And Implementation. Done so far… Started a design of your own data model In Software Engineering, recognised the processes that occur.
MS Access and Database Connections. Pre-work To make our program work seamlessly, first we have to make a small change on the database table.
PHP Workshop ‹#› أطلق إبداعك 2 أطلق إبداعك 2 مدرس معتمد من مركز زووم PHP Data Object (PDO)
Android - SQLite Database 12/10/2015. Introduction SQLite is a opensource SQL database that stores data to a text file on a device. Android comes in with.
SQlite. SQLite is a opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation.
A Guide to SQL, Eighth Edition Chapter Six Updating Data.
Materialized views (snapshot tables)
CS523 Database Design Instructor : Somchai Thangsathityangkul You can download lecture note at Class Presence 10% Quiz 10%
Oracle 10g Database Administrator: Implementation and Administration Chapter 10 Basic Data Management.
Project Description MintTrack is a mobile application built for the Android OS that will help keep track of where a user’s money is being spent via expense.
 CONACT UC:  Magnific training   
CHAPTER 9 File Storage Shared Preferences SQLite.
SSIS ETL Data Resource Management. Create an ETL package using a wizard database server to database server The business goal of this ETL package is to.
Data Storage in Android Димитър Н. Димитров. Why talk about data? Why not 3D graphics or network connectivity? Data as fundamental term in computer science.
 INDEX  Overview.  Introduction.  System Requirement.  Features Of SQL.  Development Process.  System Design (SDLC).  Implementation.  Future.
Database: JDBC Overview
Aga Private computer Institute Prepared by: Srwa Mohammad
Introduction to Entity framework
Mobile Applications (Android Programming)
Insert, Update and the rest…
CIS 136 Building Mobile Apps
Mobile Applications (Android Programming)
MongoDB Er. Shiva K. Shrestha ME Computer, NCIT
Database JDBC Overview CS Programming Languages for Web Applications
Android Database using SQLite
Entity Framework By: Casey Griffin.
Android Storage.
SQL Data Modification Statements.
tRelational/DPS Overview
Automated flights saver
Developing a Model-View-Controller Component for Joomla Part 3
Constraints & Triggers
Jeff Webb Maria Baron Chris Hundersmarck
MS Access and Database Connections
Temporary versus Permanent Changes to Data
Database Design and Development
Advanced Database System
Updating Databases With Open SQL
SQLLite and Android.
Database administration
Database SQL.
Updating Databases With Open SQL
Presentation transcript:

Persistance Android

Adding Persistance SQL Refresher Understand how to create and migrate SQLLite database with android APIs. – Get all tasks – Add a task – Update a task – Delete a task

Task Manager

Cast of Characters SQLLiteDatabase- an API to a local SQLIte database file. SQLLiteOpenHelper – a utility class that make it easy to create and maintain a local SQLite database.

Refactoring Code refactoring is a "disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior“.

SQLite in Android SQLite is available on every Android device. Using an SQLite database in Android does not require any database setup or administration. You only have to define the SQL statements for creating and updating the database. Afterwards the database is automatically managed for you by the Android platform. More help sqlite/ sqlite/

What is SQLite SQLite is an Open Source Database which is embedded into Android. SQLite supports standard relational database features like SQL syntax, transactions and prepared statements. In addition it requires only little memory at runtime (approx. 250 KByte). Unlike client–server database management systems, the SQLite engine has no standalone processes with which the application program communicatesclient–server processes

Loading Task Step one

Step One –Loading Tasks

How a SQLLite OpenHelper works

Creating a Database Table

Getting a data from Database

Loading Tasks Steps

Step 2 Adding a task

Adding Tasks

Adding Data to a Database

Step 3 Updating a task

Step 3-Completing a task

Saving Data to Database

Completing a task

Step 4 Deleting Task

Step 4-Remove Completed Task

Removing Data from Database

Remove Completed Tasks Steps

DB desing and implementation. SQLITE DATABASE APPLICATION 1)Open DB 2)Close DB 3)Insert and Remove objects In a type safe way DBAdatper Class That enbales you to talk to Sqlite database DBHelper Class Create Tables Upgrade tables DBHELPER Class tasks