Mobile Applications (Android Programming)

Slides:



Advertisements
Similar presentations
Programming with Android: Data management
Advertisements

Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 1.
SQLite in Mobile Apps by Dan Youberg. Overview Many well known applications and Internet browsers use SQLite due to its very small size (~250 Kb). Also.
Concepts of Database Management Sixth Edition
SQLLite and Java CS-328 Dick Steflik. SQLLite Embedded RDBMS ACID Compliant Size – about 257 Kbytes Not a client/server architecture –Accessed via function.
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.
CS378 - Mobile Computing Persistence - SQLite. Databases RDBMS – relational data base management system Relational databases introduced by E. F. Codd.
Data Persistence in Android
SQLite Database. SQLite Public domain database – Advantages Small (about 150 KB) – Used on devices with limited resources Each database contained within.
Database Rung-Hung Gau Department of Computer Science and Engineering
Concepts of Database Management Seventh Edition
ANDROID CONTENT PROVIDERS Peter Liu School of ICT, Seneca College.
Data Storage: Part 4 (Content Providers). Content Providers Content providers allow the sharing of data between applications. Inter-process communication.
COMP 365 Android Development.  Manages access from a central database  Allows multiple applications to access the same data.
SQLite Android Club SQLite About onCreate Insert Select Update Delete onUpdate.
9 Persistence - SQLite CSNB544 Mobile Application Development Thanks to Utexas Austin.
Concepts of Database Management Seventh Edition
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Persistance Android. Adding Persistance SQL Refresher Understand how to create and migrate SQLLite database with android APIs. – Get all tasks – Add a.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Mobile Software Development ISCG 7424 Department of Computing UNITEC John Casey and Richard Rabeder SQLite and Permissions.
JDBC CS 124. JDBC Java Database Connectivity Database Access Interface provides access to a relational database (by allowing SQL statements to be sent.
Li Tak Sing COMPS311F. Database programming JDBC (Java Database Connectivity) Java version of ODBC (Open Database Connectivity) ODBC provides a standard.
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
Database Design And Implementation. Done so far… Started a design of your own data model In Software Engineering, recognised the processes that occur.
Database Management System. DBMS A software package that allows users to create, retrieve and modify databases. A database is a collection of related.
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.
Basics of JDBC Session 14.
1. Playing with SQLite Database  SQLite : Database specific name for Android Application  For windows there are several kind of database name : Mysql,
CHAPTER 9 File Storage Shared Preferences SQLite.
By: Eliav Menachi.  On Android, all application data (including files) are private to that application  Android provides a standard way for an application.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
The Ingredients of Android Applications. A simple application in a process In a classical programming environment, the OS would load the program code.
Introduction to Database Programming with Python Gary Stewart
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.
CS371m - Mobile Computing Persistence - SQLite. 2 In case you have not taken 347: Data Management or worked with databases as part of a job, internship,
D Copyright © 2009, Oracle. All rights reserved. Using SQL*Plus.
Data Persistence Chapter 9. Objectives Learn about data storage methods Understand use of Shared Preferences Understand file-based storage and the differences.
Data Storage: Part 3 (SQLite)
Mobile Applications (Android Programming)
Mobile Applications (Android Programming)
Query Methods Simple SQL Statements Start ….
Mobile Applications (Android Programming)
Android Content Providers & SQLite
Mobile Applications (Android Programming)
SQLite in Android Landon Cox March 2, 2017.
Query Methods Where Clauses Start ….
Mobile Applications (Android Programming)
Android Application SQLite 1.
Mobile Applications (Android Programming)
Mobile Applications (Android Programming)
Android Database using SQLite
Mobile Application Development Chapter 5 [Persistent Data in Android]
Mobile Applications (Android Programming)
Mobile Computing With Android ACST Android Database Storage Part 2
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
CMPE419 Mobile Application Development
Mobile Applications (Android Programming)
Computer Science Projects Database Theory / Prototypes
Mobile Applications (Android Programming)
Mobile Applications (Android Programming)
Department of School of Computing and Engineering
SQLLite and Android.
Mobile Programming Dr. Mohsin Ali Memon.
Presentation transcript:

Mobile Applications (Android Programming) Semester II 2016 - 2017 Dr. Saman Mirza Abdullah

Data in Mobiles Where are your data saved in your mobile? How to manage them? How to retrieve them? How to update them? How all these process are going on inside the Android based mobiles? Mobile Application - Ishik

Class Objective The objective of this class is: To explain the concept of databased in Android based application. To describe the classes and methods that work with the database package in Android. To describe the SQLite database in Android based applications. Mobile Application - Ishik

Database in Android To keep or save records in mobiles, Android provides a database service. Android applications support a type of database called SQLite. This types of database can be used also separately out of Android applications. It doesn't require any server, or ODBC or JDBC. Mobile Application - Ishik

SQLite It is an open source database. It supports standard relational database features, such as in SQL statements. It requires limited memory at runtime (≅250 Kbytes). It supports the following datatypes: TEXT which is like sting in Java. INTEGER which is like long in Java. REAL which is like double in Java. Other types of data should be converted to one of these three types. Mobile Application - Ishik

SQLite It is available in all Android based devices, no need to installing the service. The only need is to define the SQL statements for creating and updating the databases. Accessing databases also need involving or defining filesystems. (simple tables) Mobile Application - Ishik

SQLite A created database in SQLite will be saved in the following directory path: DATA/data/Application_Name/database/FileName DATA/data; is the path director. Application name that you chose. File name of the database. Mobile Application - Ishik

SQLite Architecture 1. Packages There are two packages supporting data manipulating inside the Android platform: android.database, that contains all necessary classes for working with databases. (content provider) android.database.sqlite, that specified for SQLite databases. Mobile Application - Ishik

SQLite Architecture 2. A super Subclass To achieve database with SQLite, you need a super() subclass from the SQLiteOpenHelper class. It has two main parameters: Name of the database. Version of the database. A developer need to override to methods: onCreat() ; when the database crated for the first time. onUpgread () ; when changes in database needed. Mobile Application - Ishik

SQLite Architecture 2. A super Subclass To Access SQLiteDatabase, two methods are used in the class SQLiteOpenHelper : getReadableDatabse() ; to access the database in the read only status. getWriteableDatabse() ; to access the database in the editable status besides the readable. One of these two methods should be clearly defined. Mobile Application - Ishik

Mobile Application - Ishik

SQLite Architecture 3. SQLite Database SQLiteDatabase is the base class for working with a SQLite database in Android and provides methods to open, query, update and close the database. More specifically SQLiteDatabase provides the insert(), update(), and delete methods. It provides the execSQL() to execute SQL statements directly. Mobile Application - Ishik

Class End Mobile Application - Ishik

Quiz What is the main difference between these two database packages in SQLite android.databse. android.database.sqlite. Mobile Application - Ishik