SlideShare a Scribd company logo
Android Development
Beyond the Basics
S.Vanjikumaran
Saving the Data
● Most Android apps need to save data!! even
if only to save information about the app
state during onPause() so the user's
progress is not lost.
● Most non-trivial apps also need to save user
settings, and some apps must manage large
amounts of information in files and
databases.
Saving Key-Value Sets
● If you have a relatively small collection of
key-values that you'd like to save, you
should use the SharedPreferences APIs.
Saving Files
● Android uses a file system that's similar to
disk-based file systems on other platforms.
This lesson describes how to work with the
Android file system to read and write files
with the File APIs.
Saving Data in SQL Database
● Saving data to a database is ideal for
repeating or structured data, such as contact
information. This class assumes that you are
familiar with SQL databases in general and
helps you get started with SQLite databases
on Android. The APIs you'll need to use a
database on Android are available in the
android.database.sqlite package.
What is SQLite?
● SQLite is an Open Source Database
● supports standard relational database
features
● It requires only little memory at runtime
● SQLite supports the data types
SQLite in Android
● SQLite is available on every Android device
● SQLite database in android does not require
any database setup
SQLite Architecture
SQL 101
● DML
● DDL
First Ever Database in Android
● What you need to know?
○ android.database.sqlite package
●
First Ever Database in Android
● Defines the table name and column names
for a single table
First Ever Database in Android
● Create a Database Using a SQL Helper
First Ever Database in Android
● Insert data into the database by passing a
ContentValues object to the insert() method
First Ever Database in Android
● Read Information from a Database
First Ever Database in Android
● When you need to modify a subset of your
database values, use the update() method.

More Related Content

Similar to Android development beyond the basics (20)

PDF
Android local databases
FatimaYousif11
 
PDF
Iphone programming: Core Data Tutorial for iOS
Kenny Nguyen
 
PPTX
12_Data_Storage_Part_2.pptx
FaezNasir
 
PPTX
Android developer fundamentals training overview Part II
Yoza Aprilio
 
PDF
Implementation of sql server based on sqlite engine on
eSAT Publishing House
 
PPTX
SQLite in Flutter.pptx
Nabin Dhakal
 
PPTX
SQLite database in android
Gourav Kumar Saini
 
PPTX
Sqlite Multiple Table
Danang Kukuh Pribadi
 
PPTX
Save data locally
Anjan Debnath
 
PPTX
Mobile application Development-UNIT-V (1).pptx
JayasimhaThummala1
 
PPTX
Database in Android
MaryadelMar85
 
PDF
Dicoding Developer Coaching #26: Android | Menyimpan Database dengan Lebih Si...
DicodingEvent
 
PPTX
SSDT unleashed
GomathiNayagam S
 
PDF
Android App Development 05 : Saving Data
Anuchit Chalothorn
 
PDF
Database Systems - Introduction to SQL (Chapter 3/1)
Vidyasagar Mundroy
 
PDF
U nit 1_dbms
jaimin patel
 
PDF
Great IDEs for SQL Query Performance Tuning and Practice.pdf
Tosska Technology
 
PPTX
MobileApplicationDevelopment SQLite.pptx
swethabollam11
 
PPTX
Storage 8
Michael Shrove
 
PPTX
PHP Oracle
Nur Hidayat
 
Android local databases
FatimaYousif11
 
Iphone programming: Core Data Tutorial for iOS
Kenny Nguyen
 
12_Data_Storage_Part_2.pptx
FaezNasir
 
Android developer fundamentals training overview Part II
Yoza Aprilio
 
Implementation of sql server based on sqlite engine on
eSAT Publishing House
 
SQLite in Flutter.pptx
Nabin Dhakal
 
SQLite database in android
Gourav Kumar Saini
 
Sqlite Multiple Table
Danang Kukuh Pribadi
 
Save data locally
Anjan Debnath
 
Mobile application Development-UNIT-V (1).pptx
JayasimhaThummala1
 
Database in Android
MaryadelMar85
 
Dicoding Developer Coaching #26: Android | Menyimpan Database dengan Lebih Si...
DicodingEvent
 
SSDT unleashed
GomathiNayagam S
 
Android App Development 05 : Saving Data
Anuchit Chalothorn
 
Database Systems - Introduction to SQL (Chapter 3/1)
Vidyasagar Mundroy
 
U nit 1_dbms
jaimin patel
 
Great IDEs for SQL Query Performance Tuning and Practice.pdf
Tosska Technology
 
MobileApplicationDevelopment SQLite.pptx
swethabollam11
 
Storage 8
Michael Shrove
 
PHP Oracle
Nur Hidayat
 

More from Vanjikumaran Sivajothy (10)

PPTX
Peaceful Distributed Microservice Architecture
Vanjikumaran Sivajothy
 
PPTX
Demystifying API Management for Serverless Services
Vanjikumaran Sivajothy
 
PPTX
Best Practice With PLSQL
Vanjikumaran Sivajothy
 
PPT
Sign Language recognition Presentation
Vanjikumaran Sivajothy
 
PPTX
Framework for hand gesture controlled video game
Vanjikumaran Sivajothy
 
PPTX
Software architectures
Vanjikumaran Sivajothy
 
PPTX
Middleware Simplified
Vanjikumaran Sivajothy
 
PPTX
OAuth2 simplified
Vanjikumaran Sivajothy
 
PPTX
Hello androidforyarlmeetup
Vanjikumaran Sivajothy
 
PDF
Foss con2011
Vanjikumaran Sivajothy
 
Peaceful Distributed Microservice Architecture
Vanjikumaran Sivajothy
 
Demystifying API Management for Serverless Services
Vanjikumaran Sivajothy
 
Best Practice With PLSQL
Vanjikumaran Sivajothy
 
Sign Language recognition Presentation
Vanjikumaran Sivajothy
 
Framework for hand gesture controlled video game
Vanjikumaran Sivajothy
 
Software architectures
Vanjikumaran Sivajothy
 
Middleware Simplified
Vanjikumaran Sivajothy
 
OAuth2 simplified
Vanjikumaran Sivajothy
 
Hello androidforyarlmeetup
Vanjikumaran Sivajothy
 
Ad

Recently uploaded (20)

PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Python basic programing language for automation
DanialHabibi2
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
July Patch Tuesday
Ivanti
 
Python basic programing language for automation
DanialHabibi2
 
Ad

Android development beyond the basics

  • 1. Android Development Beyond the Basics S.Vanjikumaran
  • 2. Saving the Data ● Most Android apps need to save data!! even if only to save information about the app state during onPause() so the user's progress is not lost. ● Most non-trivial apps also need to save user settings, and some apps must manage large amounts of information in files and databases.
  • 3. Saving Key-Value Sets ● If you have a relatively small collection of key-values that you'd like to save, you should use the SharedPreferences APIs.
  • 4. Saving Files ● Android uses a file system that's similar to disk-based file systems on other platforms. This lesson describes how to work with the Android file system to read and write files with the File APIs.
  • 5. Saving Data in SQL Database ● Saving data to a database is ideal for repeating or structured data, such as contact information. This class assumes that you are familiar with SQL databases in general and helps you get started with SQLite databases on Android. The APIs you'll need to use a database on Android are available in the android.database.sqlite package.
  • 6. What is SQLite? ● SQLite is an Open Source Database ● supports standard relational database features ● It requires only little memory at runtime ● SQLite supports the data types
  • 7. SQLite in Android ● SQLite is available on every Android device ● SQLite database in android does not require any database setup
  • 10. First Ever Database in Android ● What you need to know? ○ android.database.sqlite package ●
  • 11. First Ever Database in Android ● Defines the table name and column names for a single table
  • 12. First Ever Database in Android ● Create a Database Using a SQL Helper
  • 13. First Ever Database in Android ● Insert data into the database by passing a ContentValues object to the insert() method
  • 14. First Ever Database in Android ● Read Information from a Database
  • 15. First Ever Database in Android ● When you need to modify a subset of your database values, use the update() method.