Mobile Applications (Android Programming)

Slides:



Advertisements
Similar presentations
CE881: Mobile and Social Application Programming Simon M. Lucas Menus and Dialogs.
Advertisements

Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
 data/data-storage.html#pref data/data-storage.html#pref 
Week 8 Recap CSE 115 Spring Composite Revisited Once we create a composite object, it can itself refer to composites. Once we create a composite.
Lecture 10: Inheritance Subclasses and superclasses The inheritance chain Access control The Object cosmic superclass The super keyword Overriding methods.
Android Mobile Application By Tony Pagaduan
CPSC150 Interfaces Chapter CPSC150 Inheritance Review No different than any other class. Has no access to or information about subclasses class.
Chapter 10 Classes Continued
Inheritance Review/Recap. ClassA extends ClassB ClassA now inherits (can access and use) all public and protected elements of ClassB We can expect the.
Creating FrontPage Tasks The task view allows you to add information about what you want to accomplish when creating your Web site.
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.
MYSQL and SQLite in Android Apps Mike Freedman. Uses Ability for your app to store new data and receive it later – Game Scores – Contact information –
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.
Address Book App 1. Define styles   Specify a background for a TextView – res/drawable/textview_border.xml.
9 Persistence - SQLite CSNB544 Mobile Application Development Thanks to Utexas Austin.
Using Microsoft Access Now that data has been entered we are ready to sort or data To do this, first click on the field label which you want to sort If.
Mobile Software Development ISCG 7424 Department of Computing UNITEC John Casey and Richard Rabeder SQLite and Permissions.
Class Builder Tutorial Presented By- Amit Singh & Sylendra Prasad.
DKU-MUST Mobile ICT Education Center 12. Data Storage and Management.
SQLite DB Storing Data in Android RAVI GAURAV PANDEY 1.
Mr. Rouda’s CSCI 101 sections. Web Expression Tutorial New Folder Code View New File.
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.
Working With Database Library And Helpers. Connecting to your Database First you need to set parameters in you database.php file residing in config folder.
Build a database II: Create tables for a new Access database Create your tables In a relational database, tables store your data. Your data doesn’t “live”
Address Book App 1 Fall 2014 CS7020: Game Design and Development.
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.
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,
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
Making content providers
Mobile Applications (Android Programming)
Inheritance.
Mobile Applications (Android Programming)
Mobile Applications (Android Programming)
Android Content Providers & SQLite
Mobile Applications (Android Programming)
Mobile Applications (Android Programming)
Reuse Separate classes could be developed for all the different objects that are needed in each program. However that would be wasteful. Often many functionalities.
SQLite in Android Landon Cox March 2, 2017.
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]
Main title Motivation Research Design (Expected) Results Subtitle
Mobile Computing With Android ACST Android Database Storage Part 2
CS240: Advanced Programming Concepts
CS323 Android Getting Started
SQL Standard Query Language Good for manipulating a Database
CMPE419 Mobile Application Development
CS371m - Mobile Computing Persistence - SQLite.
ISC321 Database Systems I Chapter 10: Object and Object-Relational Databases: Concepts, Models, Languages, and Standards Spring 2015 Dr. Abdullah Almutairi.
Computation as an Expressive Medium
Mobile Applications (Android Programming)
Advanced Java Programming
Mobile Computing With Android ACST 4550 Android Database Storage
Java Inheritance.
Aaa, bbb, ccc, ddd..
Mobile Applications (Android Programming)
Which best describes the relationship between classes and objects?
Mobile Applications (Android Programming)
ListView A view that shows items in a vertically scrolling list. The items come from the ListAdapter associated with this view. ListAdapter is used to.
Adding and Subtracting
Mobile Programming Dr. Mohsin Ali Memon.
Presentation transcript:

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

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

SQLite Database Open a new project. Create a subclass from the SQLiteOpenHelper class. It has the same process of the creating a class. Chose name “DatabaseHelper” Change the extends of the subclass to SQLiteOpenHelper. Add the following: Import the necessary library. Add necessary methods. Mobile Application - Ishik

Crating the super subclass Step 1 Crating the super subclass Step 2 Do extends Mobile Application - Ishik

Press OK Mobile Application - Ishik

Still there is red line. Mobile Application - Ishik

We need to build a default constructor Mobile Application - Ishik

Mobile Application - Ishik

Creating Database In general, for any database you should have: Database name Table name Column name. Student.db (database) Student (Table) ID NAME SURNAME MARKS 1 AAA A1 87 2 BBB B1 88 3 CCC C1 90 4 DDD D1 77 Mobile Application - Ishik

Adding Database Variables Mobile Application - Ishik

onCreate() and onUpgrade() Mobile Application - Ishik

Main Activity Code Mobile Application - Ishik

Class End Mobile Application - Ishik