SlideShare a Scribd company logo
Content Provider & Resolver
By Priyanka Rana
• Two classes in the package help enforce this requirement:
• ContentResolver & ContentProvider
• Contains classes for accessing and publishing data.
• Applications are not allowed direct access to other application’s
internal data.
• The Android framework enforces a robust and secure data sharing
model.
The android.content Package
Content package - Mobile computing
Content package - Mobile computing
What is the Content Resolver?
• The Content Resolver is the single, global instance in your application that provides access to your
(and other applications’) content providers.
• The Content Resolver behaves exactly as its name implies: it accepts requests from clients,
and resolves these requests by directing them to the content provider with a distinct authority.
• To do this, the Content Resolver stores a mapping from authorities to Content Providers. This design
is important, as it allows a simple and secure means of accessing other applications’ Content
Providers.
• The Content Resolver includes the CRUD (create, read, update, delete) methods corresponding to the
abstract methods (insert, query, update, delete) in the Content Provider class.
• The Content Resolver does not know the implementation of the Content Providers it is interacting
with (nor does it need to know); each method is passed an URI that specifies the Content Provider to
interact with.
Content package - Mobile computing
What is a Content Provider?
• Whereas the Content Resolver provides an abstraction from the application’s Content
Providers, Content Providers provide an abstraction from the underlying data source (i.e. a
SQLite database).
• They provide mechanisms for defining data security (i.e. by enforcing read/write
permissions) and offer a standard interface that connects data in one process with code
running in another process.
Content Provider
Content package - Mobile computing
Cursor cursor =
getContentResolver().query(ContactsContract.Contacts.CONT
ENT_URI,null, selection, selectionArgs, null);
This call invokes the Content Resolver’s query method.
Content package - Mobile computing

More Related Content

PPTX
Usability testing
PPTX
Conducting usability test
PPT
Usability Evaluation in Educational Technology
PPT
Hci In The Software Process
PDF
Usability_Evaluation
PPTX
Hci in software process
PPT
Usability
ODP
Usability
Usability testing
Conducting usability test
Usability Evaluation in Educational Technology
Hci In The Software Process
Usability_Evaluation
Hci in software process
Usability
Usability

What's hot (20)

PPTX
hci in software development process
PPTX
Home Mess System III
PPTX
Home Mess System: Design & Prototype
PPTX
Evaluation of eLearning
PPTX
Home mess systems- Prototype 2 & Evaluation
PPT
Standards Based Approach to User Interface Development
PPTX
Mobile Healthcare App
PDF
Technology project proposal_revised
PPTX
Usability testing 2013.12.20.
PDF
ASPECT-BASED OPINION EXTRACTION FROM CUSTOMER REVIEWS
DOCX
Mit104 software engineering
PPTX
Software engineering 20 software testing
PPTX
Usability Engineering Presentation Slides
DOC
Product aspect ranking and its applications
PPTX
03 bad usability kills
PDF
Product Feature Ranking Based On Product Reviews by Users
PPTX
Dress Yo'self
PPTX
Usability modeling and measurement
PPTX
USABILITY TESTING TO IMPROVE USER EXPERIENCE
PPT
Concept Evaluation And Selection
hci in software development process
Home Mess System III
Home Mess System: Design & Prototype
Evaluation of eLearning
Home mess systems- Prototype 2 & Evaluation
Standards Based Approach to User Interface Development
Mobile Healthcare App
Technology project proposal_revised
Usability testing 2013.12.20.
ASPECT-BASED OPINION EXTRACTION FROM CUSTOMER REVIEWS
Mit104 software engineering
Software engineering 20 software testing
Usability Engineering Presentation Slides
Product aspect ranking and its applications
03 bad usability kills
Product Feature Ranking Based On Product Reviews by Users
Dress Yo'self
Usability modeling and measurement
USABILITY TESTING TO IMPROVE USER EXPERIENCE
Concept Evaluation And Selection
Ad

Similar to Content package - Mobile computing (20)

PPTX
Content provider in_android
PPTX
G filter ppt
PPTX
UNIT-1-SQE-Dr.K.Srinivas-CSE.pptx
PPTX
KIOIO jert fill for a art and design .pptx
PPTX
Data Transfer between Activities & Databases
DOCX
The Importance of ReactJS Development Services for Interactive User Interface...
PDF
The Importance of ReactJS Development Services for Interactive User Interface...
PDF
Bn1 1020 demo android
DOC
Fun Food
PDF
Application Lifecycle Management (ALM).pdf
PDF
Object oriented analysis and design unit- i
PDF
RE of Scalable Systems
PPTX
RA21 and Privacy - NISO ALA Annual 2018
PPTX
Resource Sharing and Challenges - Distributed Computing
PPTX
Introduction to Software Development Life Cycle.pptx
PPTX
lokhgun.pptx jsun kducuudjdiue cjchcuenek ifkfjr
PDF
#ATAGTR2020 Presentation - Microservices – Explored
PDF
An Effective Approach for Document Crawling With Usage Pattern and Image Base...
PPTX
Chap 5 software as a service (saass)
PDF
Creating OER
Content provider in_android
G filter ppt
UNIT-1-SQE-Dr.K.Srinivas-CSE.pptx
KIOIO jert fill for a art and design .pptx
Data Transfer between Activities & Databases
The Importance of ReactJS Development Services for Interactive User Interface...
The Importance of ReactJS Development Services for Interactive User Interface...
Bn1 1020 demo android
Fun Food
Application Lifecycle Management (ALM).pdf
Object oriented analysis and design unit- i
RE of Scalable Systems
RA21 and Privacy - NISO ALA Annual 2018
Resource Sharing and Challenges - Distributed Computing
Introduction to Software Development Life Cycle.pptx
lokhgun.pptx jsun kducuudjdiue cjchcuenek ifkfjr
#ATAGTR2020 Presentation - Microservices – Explored
An Effective Approach for Document Crawling With Usage Pattern and Image Base...
Chap 5 software as a service (saass)
Creating OER
Ad

More from Priyanka Rana (19)

PPTX
Insertion & Selection Sort - using Priority Queues
PDF
Scrum values
PDF
Usability testing
PPT
Scrum retrospective
PPT
Convergent divergent thinking & wireframeprototyping
PDF
Sketching&storyboarding
PPT
Building better prototype
PPT
Mobile presence & location based marketing
PPT
User friendliness of website
PPT
E-commerce Marketing & advertising
PPT
E commerce business proposal
PPT
E-strategic Management-1
PPT
Maps&hash tables
PPT
Heaps & Adaptable priority Queues
PPT
Priority queues
PPT
Trees - Non Linear Data Structure
PPT
Algorithm analysis basics - Seven Functions/Big-Oh/Omega/Theta
PPT
Recursion - Algorithms and Data Structures
PPT
Linked list
Insertion & Selection Sort - using Priority Queues
Scrum values
Usability testing
Scrum retrospective
Convergent divergent thinking & wireframeprototyping
Sketching&storyboarding
Building better prototype
Mobile presence & location based marketing
User friendliness of website
E-commerce Marketing & advertising
E commerce business proposal
E-strategic Management-1
Maps&hash tables
Heaps & Adaptable priority Queues
Priority queues
Trees - Non Linear Data Structure
Algorithm analysis basics - Seven Functions/Big-Oh/Omega/Theta
Recursion - Algorithms and Data Structures
Linked list

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation theory and applications.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Cloud computing and distributed systems.
PDF
Approach and Philosophy of On baking technology
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Electronic commerce courselecture one. Pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
Encapsulation_ Review paper, used for researhc scholars
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
MYSQL Presentation for SQL database connectivity
Unlocking AI with Model Context Protocol (MCP)
Programs and apps: productivity, graphics, security and other tools
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation theory and applications.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Cloud computing and distributed systems.
Approach and Philosophy of On baking technology
sap open course for s4hana steps from ECC to s4
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
A comparative analysis of optical character recognition models for extracting...
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectral efficient network and resource selection model in 5G networks

Content package - Mobile computing

  • 1. Content Provider & Resolver By Priyanka Rana
  • 2. • Two classes in the package help enforce this requirement: • ContentResolver & ContentProvider • Contains classes for accessing and publishing data. • Applications are not allowed direct access to other application’s internal data. • The Android framework enforces a robust and secure data sharing model. The android.content Package
  • 5. What is the Content Resolver? • The Content Resolver is the single, global instance in your application that provides access to your (and other applications’) content providers. • The Content Resolver behaves exactly as its name implies: it accepts requests from clients, and resolves these requests by directing them to the content provider with a distinct authority. • To do this, the Content Resolver stores a mapping from authorities to Content Providers. This design is important, as it allows a simple and secure means of accessing other applications’ Content Providers. • The Content Resolver includes the CRUD (create, read, update, delete) methods corresponding to the abstract methods (insert, query, update, delete) in the Content Provider class. • The Content Resolver does not know the implementation of the Content Providers it is interacting with (nor does it need to know); each method is passed an URI that specifies the Content Provider to interact with.
  • 7. What is a Content Provider? • Whereas the Content Resolver provides an abstraction from the application’s Content Providers, Content Providers provide an abstraction from the underlying data source (i.e. a SQLite database). • They provide mechanisms for defining data security (i.e. by enforcing read/write permissions) and offer a standard interface that connects data in one process with code running in another process.
  • 10. Cursor cursor = getContentResolver().query(ContactsContract.Contacts.CONT ENT_URI,null, selection, selectionArgs, null); This call invokes the Content Resolver’s query method.