SlideShare a Scribd company logo
MAD-Compiled by Biruk S. 1
2
Storing and Retrieving Data
Chapter Four
MAD-Compiled by Biruk S.
3
Introduction
MAD-Compiled by Biruk S.
 Android provides several options for you to save persistent application
data.
 The solution you choose depends on your specific needs, such as
whether the data should be private to your application or accessible to
other applications (and the user) and how much space your data
requires.
4
MAD-Compiled by Biruk S.
Continued…
 Your data storage options are the following:
Shared Preferences
Store private primitive data in key-value pairs.
Internal Storage
Store private data on the device memory.
External Storage
Store public data on the shared external storage.
SQLite Databases
Store structured data in a private database.
Network Connection
Store data on the web with your own network server.
5
MAD-Compiled by Biruk S.
Continued…
 Android provides a way for you to expose even your private data to
other applications — with a content provider.
 Using the External Storage
Every Android-compatible device supports a shared “external storage” that
you can use to save files.
 Using Databases
Android provides full support for SQLite databases. Any databases you
create will be accessible by name to any class in the application, but not
outside the application.
6
MAD-Compiled by Biruk S.
Continued…
 Using a Network Connection
You can use the network (when it’s available) to store and retrieve data on
your own web-based services. To do network operations, use classes in the
following packages:
java.net.*
android.net.*
7
MAD-Compiled by Biruk S.
Continued…
 Synchronization and Replication of Mobile Data
 Data synchronization is a method of establishing consistency among
data from a data source to the target data storage and vice versa.
 In data synchronization, we have to keep multiple copies of a dataset
in coherence with one another to maintain the data integrity.
8
MAD-Compiled by Biruk S.
Continued…
 Getting the Model Right
 Every business wants to provide services to their customers, wherever
they are and whatever they are doing. Some do this through their
website; others do use a mobile app.
 The challenge is that there is a multitude of different devices used by
customers.
 So which devices should the app be supported on? Can all be
supported?
9
MAD-Compiled by Biruk S.
Continued…
 Working with a Content Provider
 In Android, Content Providers are a very important component that
serves the purpose of a relational database to store the data of
applications.
 The role of the content provider in the android system is like a central
repository in which data of the applications are stored, and it facilitates
other applications to securely access and modifies that data based on
the user requirements.
 Users can manage to store the application data like images, audio,
videos, and personal contact information by storing them in
SQLite Database, in files, or even on a network.
10
MAD-Compiled by Biruk S.
Continued…
11
MAD-Compiled by Biruk S.
Cont…
Operations in Content Provider
 Four fundamental operations are possible in
Content Provider namely Create, Read, Update,
and Delete. These operations are often termed
as CRUD operations.
 Create: Operation to create data in a content
provider.
 Read: Used to fetch data from a content
provider.
 Update: To modify existing data.
 Delete: To remove existing data from the
storage.
12
THANK YOU
?
MAD-Compiled by Biruk S.

More Related Content

PDF
Mobile Application Development -Lecture 11 & 12.pdf
AbdullahMunir32
 
PPT
Lecture 4 mobile database system
salbiahhamzah
 
PDF
Optimization Of Storage Management In Android - S3CA
Vivek Raj Agarwal
 
DOCX
Paper 3 Draft 3
Utphala P
 
PPTX
Multimedia database
Faizal Basheer
 
PDF
76 s201911
IJRAT
 
PDF
Comprehensive Guide to Effective Introduction to Database Systems Principles
EliasZerabruk
 
PDF
Auditing Cloud Data With Group
JSPM's JSCOE , Pune Maharashtra.
 
Mobile Application Development -Lecture 11 & 12.pdf
AbdullahMunir32
 
Lecture 4 mobile database system
salbiahhamzah
 
Optimization Of Storage Management In Android - S3CA
Vivek Raj Agarwal
 
Paper 3 Draft 3
Utphala P
 
Multimedia database
Faizal Basheer
 
76 s201911
IJRAT
 
Comprehensive Guide to Effective Introduction to Database Systems Principles
EliasZerabruk
 
Auditing Cloud Data With Group
JSPM's JSCOE , Pune Maharashtra.
 

Similar to MAD-4 (2).pptx mobile application development (20)

PDF
Integrity Auditing Of Dynamic Cloud Data With Group User Revocation
JSPM's JSCOE , Pune Maharashtra.
 
PDF
A Backup and Restore Software for Android System
IRJET Journal
 
DOC
Google android white paper
Sravan Reddy
 
PPTX
Android - Day 2
People Strategists
 
PDF
How the IDS-RAM Standard contributes to European Data Spaces
OPEN DEI
 
PPTX
DBMS Part1.pptx
Prof. Dr. K. Adisesha
 
PPTX
DBMS.pptx
Prof. Dr. K. Adisesha
 
PPTX
Net-Centric Data Strategy
Daniel Risacher
 
PDF
Mobile Database: The Backbone of Modern Applications
DataProvider1
 
PPTX
MAD-1.pptx mobile application development
Tekle12
 
PDF
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
DataProvider1
 
PDF
accurate cleaned numbers list from frist database 01 - Google Docs.pdf
DataProvider1
 
PPTX
File systems versus a dbms
RituBhargava7
 
PPTX
Android classes-in-mumbai
Vibrant Technologies & Computers
 
PDF
Why Every Smart Device User Needs an IoT Backup App
shreyasphinxsolution
 
PDF
Implementation of sql server based on sqlite engine on
eSAT Publishing House
 
PDF
CLOUD AND ANDROID APP DEVELOPMENT
Techahead Software
 
PDF
Database for Mobile Application
ijtsrd
 
PDF
Android Security: A Survey of Security Issues and Defenses
IRJET Journal
 
PPTX
MAD_UNIT-3.pptx mobile application development
sachinboy9999
 
Integrity Auditing Of Dynamic Cloud Data With Group User Revocation
JSPM's JSCOE , Pune Maharashtra.
 
A Backup and Restore Software for Android System
IRJET Journal
 
Google android white paper
Sravan Reddy
 
Android - Day 2
People Strategists
 
How the IDS-RAM Standard contributes to European Data Spaces
OPEN DEI
 
DBMS Part1.pptx
Prof. Dr. K. Adisesha
 
Net-Centric Data Strategy
Daniel Risacher
 
Mobile Database: The Backbone of Modern Applications
DataProvider1
 
MAD-1.pptx mobile application development
Tekle12
 
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
DataProvider1
 
accurate cleaned numbers list from frist database 01 - Google Docs.pdf
DataProvider1
 
File systems versus a dbms
RituBhargava7
 
Android classes-in-mumbai
Vibrant Technologies & Computers
 
Why Every Smart Device User Needs an IoT Backup App
shreyasphinxsolution
 
Implementation of sql server based on sqlite engine on
eSAT Publishing House
 
CLOUD AND ANDROID APP DEVELOPMENT
Techahead Software
 
Database for Mobile Application
ijtsrd
 
Android Security: A Survey of Security Issues and Defenses
IRJET Journal
 
MAD_UNIT-3.pptx mobile application development
sachinboy9999
 
Ad

More from Tekle12 (20)

PPTX
MAD-4 (2).pptx mobile application development
Tekle12
 
PPTX
MAD-3 (2).pptx mobile application development
Tekle12
 
PPTX
MAD-2.pptx mobile application development
Tekle12
 
PPTX
MAD-3 (2).pptx mobile application development
Tekle12
 
PPTX
MAD-2.pptx mobile application development
Tekle12
 
PPTX
Chapter 3 - EMTE.pptx artificial intelligence
Tekle12
 
PPTX
Chapter 2.pptx emerging technology data science
Tekle12
 
PPTX
Chapter 4 - EMTE.pptx internet of things
Tekle12
 
PPTX
This is Emerging Technology Power point shared here
Tekle12
 
PPTX
ch1introduction about android development.pptx
Tekle12
 
PPTX
Chapter 3 Naming in distributed system.pptx
Tekle12
 
PPTX
Chapter Introductionn to distributed system .pptx
Tekle12
 
PPTX
Chapter 6emerging technology - EMTE.pptx
Tekle12
 
PPTX
Chapter 4about internet of things IoT.pptx
Tekle12
 
PPTX
Design and analysis of algorithm chapter two.pptx
Tekle12
 
PPT
Chapter1.1 Introduction to design and analysis of algorithm.ppt
Tekle12
 
PPT
Chapter 6 WSN.ppt
Tekle12
 
PPTX
Chapter 2.1.pptx
Tekle12
 
PPT
CHAPTER-3a.ppt
Tekle12
 
PPT
CHAPTER-5.ppt
Tekle12
 
MAD-4 (2).pptx mobile application development
Tekle12
 
MAD-3 (2).pptx mobile application development
Tekle12
 
MAD-2.pptx mobile application development
Tekle12
 
MAD-3 (2).pptx mobile application development
Tekle12
 
MAD-2.pptx mobile application development
Tekle12
 
Chapter 3 - EMTE.pptx artificial intelligence
Tekle12
 
Chapter 2.pptx emerging technology data science
Tekle12
 
Chapter 4 - EMTE.pptx internet of things
Tekle12
 
This is Emerging Technology Power point shared here
Tekle12
 
ch1introduction about android development.pptx
Tekle12
 
Chapter 3 Naming in distributed system.pptx
Tekle12
 
Chapter Introductionn to distributed system .pptx
Tekle12
 
Chapter 6emerging technology - EMTE.pptx
Tekle12
 
Chapter 4about internet of things IoT.pptx
Tekle12
 
Design and analysis of algorithm chapter two.pptx
Tekle12
 
Chapter1.1 Introduction to design and analysis of algorithm.ppt
Tekle12
 
Chapter 6 WSN.ppt
Tekle12
 
Chapter 2.1.pptx
Tekle12
 
CHAPTER-3a.ppt
Tekle12
 
CHAPTER-5.ppt
Tekle12
 
Ad

Recently uploaded (20)

PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 

MAD-4 (2).pptx mobile application development

  • 2. 2 Storing and Retrieving Data Chapter Four MAD-Compiled by Biruk S.
  • 3. 3 Introduction MAD-Compiled by Biruk S.  Android provides several options for you to save persistent application data.  The solution you choose depends on your specific needs, such as whether the data should be private to your application or accessible to other applications (and the user) and how much space your data requires.
  • 4. 4 MAD-Compiled by Biruk S. Continued…  Your data storage options are the following: Shared Preferences Store private primitive data in key-value pairs. Internal Storage Store private data on the device memory. External Storage Store public data on the shared external storage. SQLite Databases Store structured data in a private database. Network Connection Store data on the web with your own network server.
  • 5. 5 MAD-Compiled by Biruk S. Continued…  Android provides a way for you to expose even your private data to other applications — with a content provider.  Using the External Storage Every Android-compatible device supports a shared “external storage” that you can use to save files.  Using Databases Android provides full support for SQLite databases. Any databases you create will be accessible by name to any class in the application, but not outside the application.
  • 6. 6 MAD-Compiled by Biruk S. Continued…  Using a Network Connection You can use the network (when it’s available) to store and retrieve data on your own web-based services. To do network operations, use classes in the following packages: java.net.* android.net.*
  • 7. 7 MAD-Compiled by Biruk S. Continued…  Synchronization and Replication of Mobile Data  Data synchronization is a method of establishing consistency among data from a data source to the target data storage and vice versa.  In data synchronization, we have to keep multiple copies of a dataset in coherence with one another to maintain the data integrity.
  • 8. 8 MAD-Compiled by Biruk S. Continued…  Getting the Model Right  Every business wants to provide services to their customers, wherever they are and whatever they are doing. Some do this through their website; others do use a mobile app.  The challenge is that there is a multitude of different devices used by customers.  So which devices should the app be supported on? Can all be supported?
  • 9. 9 MAD-Compiled by Biruk S. Continued…  Working with a Content Provider  In Android, Content Providers are a very important component that serves the purpose of a relational database to store the data of applications.  The role of the content provider in the android system is like a central repository in which data of the applications are stored, and it facilitates other applications to securely access and modifies that data based on the user requirements.  Users can manage to store the application data like images, audio, videos, and personal contact information by storing them in SQLite Database, in files, or even on a network.
  • 10. 10 MAD-Compiled by Biruk S. Continued…
  • 11. 11 MAD-Compiled by Biruk S. Cont… Operations in Content Provider  Four fundamental operations are possible in Content Provider namely Create, Read, Update, and Delete. These operations are often termed as CRUD operations.  Create: Operation to create data in a content provider.  Read: Used to fetch data from a content provider.  Update: To modify existing data.  Delete: To remove existing data from the storage.