COMP 365 Android Development.  Manages access from a central database  Allows multiple applications to access the same data.

Slides:



Advertisements
Similar presentations
Programming with Android: Data management
Advertisements

Access Quiz October 24, The database objects bar in Access contains icons for tables, queries, forms and reports 1.True 2.False.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 8 Arrays.
Designing a Database Unleashing the Power of Relational Database Design.
컨텐트 프로바이더 박승제. Content Provider The only way to share data across applications Using content provider Use existing content providers supplied by android.
Introduction to Structured Query Language (SQL)
Attribute databases. GIS Definition Diagram Output Query Results.
CONTENT PROVIDER. Content Provider  A content provider makes a specific set of the application's data available to other applications => Share data to.
SQLLite and Java CS-328 Dick Steflik. SQLLite Embedded RDBMS ACID Compliant Size – about 257 Kbytes Not a client/server architecture –Accessed via function.
CS378 - Mobile Computing Persistence - SQLite. Databases RDBMS – relational data base management system Relational databases introduced by E. F. Codd.
Data Persistence in Android
Data Access Patterns. Motivation Most software systems require persistent data (i.e. data that persists between program executions). In general, distributing.
SQLite Database. SQLite Public domain database – Advantages Small (about 150 KB) – Used on devices with limited resources Each database contained within.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Content Providers & Services.
ContentProviders. SQLite Database SQLite is a software library that implements aself- contained, serverless,zero- configuration,transactionalSQL database.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
ANDROID CONTENT PROVIDERS Peter Liu School of ICT, Seneca College.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Cosc 5/4730 Android Content Providers and Intents.
Data Storage: Part 4 (Content Providers). Content Providers Content providers allow the sharing of data between applications. Inter-process communication.
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Recitation.
SQLite Android Club SQLite About onCreate Insert Select Update Delete onUpdate.
Android Content Providers In Android security model, one application cannot directly access (read/write) other application's data. Every application has.
9 Persistence - SQLite CSNB544 Mobile Application Development Thanks to Utexas Austin.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
Introduction to the SharePoint 2013 REST API. 2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 8 Advanced SQL.
Security Considerations Steve Perry
Persistence Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.
SQLite (part deux) 1 CS440. Traditional Model View Controller (MVC) CS440 2.
Database UpdatestMyn1 Database Updates SQL is a complete data manipulation language that can be used for modifying the data in the database as well as.
SQLite DB Storing Data in Android RAVI GAURAV PANDEY 1.
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.
Java Software Solutions Lewis and Loftus Chapter 6 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Objects for Organizing Data.
CSE 486/586, Spring 2014 CSE 486/586 Distributed Systems Android Programming Steve Ko Computer Sciences and Engineering University at Buffalo.
3-1 Modeling Basic Entities DBMS Create Sort Search Addition Deletion Modification Create Sort Search Addition Deletion Modification DBMS is a Software.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. DATABASE.
CHAPTER 9 File Storage Shared Preferences SQLite.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
By: Eliav Menachi.  On Android, all application data (including files) are private to that application  Android provides a standard way for an application.
The Ingredients of Android Applications. A simple application in a process In a classical programming environment, the OS would load the program code.
Data Storage in Android Димитър Н. Димитров. Why talk about data? Why not 3D graphics or network connectivity? Data as fundamental term in computer science.
1. 2 The Address Book app provides convenient access to contact information that’s stored in a SQLite database on the device. You can: scroll through.
Content Providers.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Making content providers
Content provider.
Database Access with SQL
Databases.
Android Content Providers & SQLite
Mobile Applications (Android Programming)
Data Storage: Part 4 (Content Providers)
Content Providers And Content Resolvers
SQLite in Android Landon Cox March 2, 2017.
Mobile Applications (Android Programming)
Android Application SQLite 1.
CS499 – Mobile Application Development
Android Database using SQLite
Content Providers.
Mobile Computing With Android ACST Android Database Storage Part 2
DATABASES WHAT IS A DATABASE?
The ultimate in data organization
Department of School of Computing and Engineering
SQLLite and Android.
Mobile Programming Dr. Mohsin Ali Memon.
Presentation transcript:

COMP 365 Android Development

 Manages access from a central database  Allows multiple applications to access the same data

 Each row is an instance of similar data. For example, if your database contains words, each row contains a different word.  Each column contains data related to an element. For the above example, the 3 rd column represents how many times each word is used.

 Implement the Android class ContentProvider  Require a means to store complex data/files that applications other than your content provider need access to  Require methods to search and sort a large amount of information  Need users to copy complex data from your database to other applications

 File Data  Organized data usually stored in files  Pictures, Audio and Video files.  Structured Data  Data stored in an “array” or “table” format  Each column represents an aspect of that data  Each row represents an element of data

 An SQLite database  An SQLite database API used to store tabular data  SQLiteOpenHelper class to create the database  SQLiteDatabase to access the database  File orientated data  Network-based data  Synchronizing data from a network source

 Content URI is the access point for content provider  Authority – the symbolic name of the provider  If the package name is “com.example.androidContentProvider”  The authority by convention will be “com.example.androidContentProvider.provider”

 Path – the pathname that points to a table or file in your content provider  By convention, the pathname to “table1” will be “com.example.androidContentProvider.provider/t able1”  Id – Optional, but can point to a specific row in a table.

 Perform additional operations on more than a single row  * : Matches a string of any valid characters of any length  # : Matches a string of numeric characters of any length  Use the UriMatcher.addURI() and UriMatcher.match(uri) methods to perform actions

 Abstract class  Query – implemented to return search requests from your provider. Must return a Cursor object.  Insert – inserts a new row(s) into your database.  Update – update a row(s) in your database.  Delete – delete one or more rows from your database.

 GetType – returns the MIME type of the element.  OnCreate – implements and creates your content provider on startup. This implementation may change depending on the ContentProvider or SQLiteOpenHelper classes.