SlideShare a Scribd company logo
ANDROID CONTENT
PROVIDER EXPLAINED
Usages and examples
By: Shady Yehia Selim
1
IN FEW WORDS
 ‘do something’ Filters
2
THE BEST DESCRIPTION
 When the android system or another application wants to do a specific
task, it will broadcast an intent saying “can anyone do this for me“
3
SO IT NEEDS
 Intent to describe the “mime-type” for sharing content
 Broadcasting listener to answer and serve, or broadcast sender for the
content to be shared
4
IT CAN BE USED TO ….
 Allow to collect data from different sources, and send one dataset
result
5
IT CAN BE USED TO ….
 Support other apps, widgets, search, and others, with the same results
6
IT CAN BE USED TO ….
 Control single app roles access
 Control different apps access permissions to the same data source
 Control apps data source, so if the host data server was changed, you
won’t have to update all the apps, only the content provider data
source
 Help implementing new trends and security controls like, Android for
Work, Android for Education, BYOD, MDM, MAM, and MCM.
7
IN THE LATEST ANDROID VERSION
 With Android 7.1 (API level 25), the Android SDK includes the Commit
Content API, which provides a universal way for IMEs to send images
and other rich content directly to a text editor in an app. The API is also
available in v13 Support Library as of revision 25.0.0.
 In English you can use images in your keyboard
 https://developer.android.com/guide/topics/text/image-keyboard.html
8
RESOURCES
 http://blog.blundellapps.co.uk/add-your-app-to-the-android-menu/
 https://developer.android.com/guide/topics/providers/content-providers.html
 https://developer.android.com/guide/topics/providers/content-provider-basics.html
 https://developer.android.com/reference/android/content/ContentProvider.html
 https://developer.android.com/guide/topics/providers/content-provider-creating.html
 https://developer.android.com/training/sharing/shareaction.html
9
RESOURCES
 https://developer.android.com/training/sharing/send.html
 https://developer.android.com/training/testing/integration-testing/content-provider-
testing.html
 https://www.tutorialspoint.com/android/android_content_providers.htm
 http://www.vogella.com/tutorials/AndroidSQLite/article.html
 http://www.grokkingandroid.com/android-tutorial-writing-your-own-content-provider/
 https://code.tutsplus.com/tutorials/android-fundamentals-working-with-content-providers--
mobile-5549
10

More Related Content

What's hot

Create an android app for database creation using.pptx
Create an android app for database creation using.pptxCreate an android app for database creation using.pptx
Create an android app for database creation using.pptx
vishal choudhary
 
Web Programming - 5 Passing and Request Data
Web Programming - 5 Passing and Request DataWeb Programming - 5 Passing and Request Data
Web Programming - 5 Passing and Request Data
AndiNurkholis1
 
Day 8: Dealing with Lists and ListViews
Day 8: Dealing with Lists and ListViewsDay 8: Dealing with Lists and ListViews
Day 8: Dealing with Lists and ListViews
Ahsanul Karim
 
Asp net interview_questions
Asp net interview_questionsAsp net interview_questions
Asp net interview_questions
Bilam
 
ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON
Padma shree. T
 
Lesson 06 Styles and Templates in WPF
Lesson 06 Styles and Templates in WPFLesson 06 Styles and Templates in WPF
Lesson 06 Styles and Templates in WPF
Quang Nguyễn Bá
 
Ado Net
Ado NetAdo Net
Lesson 05 Data Binding in WPF
Lesson 05 Data Binding in WPFLesson 05 Data Binding in WPF
Lesson 05 Data Binding in WPF
Quang Nguyễn Bá
 
Lesson 09 Resources and Settings in WPF
Lesson 09 Resources and Settings in WPFLesson 09 Resources and Settings in WPF
Lesson 09 Resources and Settings in WPF
Quang Nguyễn Bá
 
Programming web application
Programming web applicationProgramming web application
Programming web application
aspnet123
 
Visible Governance: How to set up data governance using Visible Analyst Comme...
Visible Governance: How to set up data governance using Visible Analyst Comme...Visible Governance: How to set up data governance using Visible Analyst Comme...
Visible Governance: How to set up data governance using Visible Analyst Comme...
Michael Cesino
 
Efficient Spring Data REST Development
Efficient Spring Data REST DevelopmentEfficient Spring Data REST Development
Efficient Spring Data REST Development
Catalin Tudose
 
Backendless apps
Backendless appsBackendless apps
Backendless apps
Matteo Bonifazi
 
Android - Saving data
Android - Saving dataAndroid - Saving data
Android - Saving data
Matteo Bonifazi
 
Show loader to open url in web view
Show loader to open url in web viewShow loader to open url in web view
Show loader to open url in web view
Aravindharamanan S
 
SAP BO Web Intelligence Basics
SAP BO Web Intelligence BasicsSAP BO Web Intelligence Basics
SAP BO Web Intelligence Basics
Kiran Joy
 
Semantically Reconnecting Fragmented Information through User Activity Monito...
Semantically Reconnecting Fragmented Information through User Activity Monito...Semantically Reconnecting Fragmented Information through User Activity Monito...
Semantically Reconnecting Fragmented Information through User Activity Monito...
Hinnerk Brügmann
 
Share preference
Share preferenceShare preference
Share preference
SbahatNosheen
 
Android share preferences
Android share preferencesAndroid share preferences
Android share preferences
Ajay Panchal
 

What's hot (19)

Create an android app for database creation using.pptx
Create an android app for database creation using.pptxCreate an android app for database creation using.pptx
Create an android app for database creation using.pptx
 
Web Programming - 5 Passing and Request Data
Web Programming - 5 Passing and Request DataWeb Programming - 5 Passing and Request Data
Web Programming - 5 Passing and Request Data
 
Day 8: Dealing with Lists and ListViews
Day 8: Dealing with Lists and ListViewsDay 8: Dealing with Lists and ListViews
Day 8: Dealing with Lists and ListViews
 
Asp net interview_questions
Asp net interview_questionsAsp net interview_questions
Asp net interview_questions
 
ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON
 
Lesson 06 Styles and Templates in WPF
Lesson 06 Styles and Templates in WPFLesson 06 Styles and Templates in WPF
Lesson 06 Styles and Templates in WPF
 
Ado Net
Ado NetAdo Net
Ado Net
 
Lesson 05 Data Binding in WPF
Lesson 05 Data Binding in WPFLesson 05 Data Binding in WPF
Lesson 05 Data Binding in WPF
 
Lesson 09 Resources and Settings in WPF
Lesson 09 Resources and Settings in WPFLesson 09 Resources and Settings in WPF
Lesson 09 Resources and Settings in WPF
 
Programming web application
Programming web applicationProgramming web application
Programming web application
 
Visible Governance: How to set up data governance using Visible Analyst Comme...
Visible Governance: How to set up data governance using Visible Analyst Comme...Visible Governance: How to set up data governance using Visible Analyst Comme...
Visible Governance: How to set up data governance using Visible Analyst Comme...
 
Efficient Spring Data REST Development
Efficient Spring Data REST DevelopmentEfficient Spring Data REST Development
Efficient Spring Data REST Development
 
Backendless apps
Backendless appsBackendless apps
Backendless apps
 
Android - Saving data
Android - Saving dataAndroid - Saving data
Android - Saving data
 
Show loader to open url in web view
Show loader to open url in web viewShow loader to open url in web view
Show loader to open url in web view
 
SAP BO Web Intelligence Basics
SAP BO Web Intelligence BasicsSAP BO Web Intelligence Basics
SAP BO Web Intelligence Basics
 
Semantically Reconnecting Fragmented Information through User Activity Monito...
Semantically Reconnecting Fragmented Information through User Activity Monito...Semantically Reconnecting Fragmented Information through User Activity Monito...
Semantically Reconnecting Fragmented Information through User Activity Monito...
 
Share preference
Share preferenceShare preference
Share preference
 
Android share preferences
Android share preferencesAndroid share preferences
Android share preferences
 

Similar to Android content provider explained

Mobile Application Development -Lecture 11 & 12.pdf
Mobile Application Development -Lecture 11 & 12.pdfMobile Application Development -Lecture 11 & 12.pdf
Mobile Application Development -Lecture 11 & 12.pdf
AbdullahMunir32
 
Android Introduction by Kajal
Android Introduction by KajalAndroid Introduction by Kajal
Android Introduction by Kajal
Kajal Kucheriya Jain
 
Aptech Apps
Aptech Apps Aptech Apps
Aptech Apps
RasikaShinde6
 
Building blocks of android
Building blocks of androidBuilding blocks of android
Building blocks of android
Siddhesh Palkar
 
Personium - Open Source PDS envisioning the Web of MyData
Personium - Open Source PDS envisioning the Web of MyDataPersonium - Open Source PDS envisioning the Web of MyData
Personium - Open Source PDS envisioning the Web of MyData
暁生 下野
 
Mediating Applications on the Android System
Mediating Applications on the Android SystemMediating Applications on the Android System
Mediating Applications on the Android System
Nizar Maan
 
Android beginners David
Android beginners DavidAndroid beginners David
Android beginners David
Arun David Johnson R
 
Android Basic- CMC
Android Basic- CMCAndroid Basic- CMC
Android Basic- CMC
Pragati Singh
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorial
nirajsimulanis
 
Mobile testing android
Mobile testing   androidMobile testing   android
Mobile testing android
Basant Dewangan
 
Android open-source operating System for mobile devices
Android open-source operating System for mobile devicesAndroid open-source operating System for mobile devices
Android open-source operating System for mobile devices
IOSR Journals
 
Optimization Of Storage Management In Android - S3CA
Optimization Of Storage Management In Android - S3CAOptimization Of Storage Management In Android - S3CA
Optimization Of Storage Management In Android - S3CA
Vivek Raj Agarwal
 
Remote Exploitation of the Dropbox SDK for Android
Remote Exploitation of the Dropbox SDK for AndroidRemote Exploitation of the Dropbox SDK for Android
Remote Exploitation of the Dropbox SDK for Android
IBM Security
 
Android security
Android securityAndroid security
Android security
Dr Amira Bibo
 
Android security
Android securityAndroid security
Android security
Dr Amira Bibo
 
Introduction to everything around Android
Introduction to everything around AndroidIntroduction to everything around Android
Introduction to everything around Android
Bipin Jethwani
 
Nativa Android Applications development
Nativa Android Applications developmentNativa Android Applications development
Nativa Android Applications development
Alfredo Morresi
 
Introduction to Android Development Latest
Introduction to Android Development LatestIntroduction to Android Development Latest
Introduction to Android Development Latest
Prof. Erwin Globio
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paper
Sravan Reddy
 
Android(1)
Android(1)Android(1)
Android(1)
Nikola Milosevic
 

Similar to Android content provider explained (20)

Mobile Application Development -Lecture 11 & 12.pdf
Mobile Application Development -Lecture 11 & 12.pdfMobile Application Development -Lecture 11 & 12.pdf
Mobile Application Development -Lecture 11 & 12.pdf
 
Android Introduction by Kajal
Android Introduction by KajalAndroid Introduction by Kajal
Android Introduction by Kajal
 
Aptech Apps
Aptech Apps Aptech Apps
Aptech Apps
 
Building blocks of android
Building blocks of androidBuilding blocks of android
Building blocks of android
 
Personium - Open Source PDS envisioning the Web of MyData
Personium - Open Source PDS envisioning the Web of MyDataPersonium - Open Source PDS envisioning the Web of MyData
Personium - Open Source PDS envisioning the Web of MyData
 
Mediating Applications on the Android System
Mediating Applications on the Android SystemMediating Applications on the Android System
Mediating Applications on the Android System
 
Android beginners David
Android beginners DavidAndroid beginners David
Android beginners David
 
Android Basic- CMC
Android Basic- CMCAndroid Basic- CMC
Android Basic- CMC
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorial
 
Mobile testing android
Mobile testing   androidMobile testing   android
Mobile testing android
 
Android open-source operating System for mobile devices
Android open-source operating System for mobile devicesAndroid open-source operating System for mobile devices
Android open-source operating System for mobile devices
 
Optimization Of Storage Management In Android - S3CA
Optimization Of Storage Management In Android - S3CAOptimization Of Storage Management In Android - S3CA
Optimization Of Storage Management In Android - S3CA
 
Remote Exploitation of the Dropbox SDK for Android
Remote Exploitation of the Dropbox SDK for AndroidRemote Exploitation of the Dropbox SDK for Android
Remote Exploitation of the Dropbox SDK for Android
 
Android security
Android securityAndroid security
Android security
 
Android security
Android securityAndroid security
Android security
 
Introduction to everything around Android
Introduction to everything around AndroidIntroduction to everything around Android
Introduction to everything around Android
 
Nativa Android Applications development
Nativa Android Applications developmentNativa Android Applications development
Nativa Android Applications development
 
Introduction to Android Development Latest
Introduction to Android Development LatestIntroduction to Android Development Latest
Introduction to Android Development Latest
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paper
 
Android(1)
Android(1)Android(1)
Android(1)
 

More from Shady Selim

What is Kotlin Multiplaform? Why & How?
What is Kotlin Multiplaform? Why & How? What is Kotlin Multiplaform? Why & How?
What is Kotlin Multiplaform? Why & How?
Shady Selim
 
Kotlin native for iOS and Android
Kotlin native for iOS and AndroidKotlin native for iOS and Android
Kotlin native for iOS and Android
Shady Selim
 
Introduction on Mobile development
Introduction on Mobile developmentIntroduction on Mobile development
Introduction on Mobile development
Shady Selim
 
Game development using Flutter
Game development using FlutterGame development using Flutter
Game development using Flutter
Shady Selim
 
I/O 2019 android updates
I/O 2019 android updatesI/O 2019 android updates
I/O 2019 android updates
Shady Selim
 
Kotlin for android 2019
Kotlin for android 2019Kotlin for android 2019
Kotlin for android 2019
Shady Selim
 
What's new in android 2018 (dev fest)
What's new in android 2018 (dev fest)What's new in android 2018 (dev fest)
What's new in android 2018 (dev fest)
Shady Selim
 
Intro to Flutter
Intro to FlutterIntro to Flutter
Intro to Flutter
Shady Selim
 
Intro to kotlin 2018
Intro to kotlin 2018Intro to kotlin 2018
Intro to kotlin 2018
Shady Selim
 
The magic of flutter
The magic of flutterThe magic of flutter
The magic of flutter
Shady Selim
 
Intro to Kotlin
Intro to KotlinIntro to Kotlin
Intro to Kotlin
Shady Selim
 
Intro to Kotlin Minia GDG DevFest 2017
Intro to Kotlin Minia GDG DevFest 2017Intro to Kotlin Minia GDG DevFest 2017
Intro to Kotlin Minia GDG DevFest 2017
Shady Selim
 
Kotlin for Frontend & Backend Web development
Kotlin for Frontend & Backend Web developmentKotlin for Frontend & Backend Web development
Kotlin for Frontend & Backend Web development
Shady Selim
 
Kotlin for android
Kotlin for androidKotlin for android
Kotlin for android
Shady Selim
 
Intro to Kotlin
Intro to KotlinIntro to Kotlin
Intro to Kotlin
Shady Selim
 
Firebase
FirebaseFirebase
Firebase
Shady Selim
 
Design for Web and Mobile
Design for Web and MobileDesign for Web and Mobile
Design for Web and Mobile
Shady Selim
 
Towards a better higher education system by Shady Selim
Towards a better higher education system by Shady SelimTowards a better higher education system by Shady Selim
Towards a better higher education system by Shady Selim
Shady Selim
 
Android Programing Course Material Labs
Android Programing Course Material LabsAndroid Programing Course Material Labs
Android Programing Course Material Labs
Shady Selim
 
Android Programing Course Material
Android Programing Course Material Android Programing Course Material
Android Programing Course Material
Shady Selim
 

More from Shady Selim (20)

What is Kotlin Multiplaform? Why & How?
What is Kotlin Multiplaform? Why & How? What is Kotlin Multiplaform? Why & How?
What is Kotlin Multiplaform? Why & How?
 
Kotlin native for iOS and Android
Kotlin native for iOS and AndroidKotlin native for iOS and Android
Kotlin native for iOS and Android
 
Introduction on Mobile development
Introduction on Mobile developmentIntroduction on Mobile development
Introduction on Mobile development
 
Game development using Flutter
Game development using FlutterGame development using Flutter
Game development using Flutter
 
I/O 2019 android updates
I/O 2019 android updatesI/O 2019 android updates
I/O 2019 android updates
 
Kotlin for android 2019
Kotlin for android 2019Kotlin for android 2019
Kotlin for android 2019
 
What's new in android 2018 (dev fest)
What's new in android 2018 (dev fest)What's new in android 2018 (dev fest)
What's new in android 2018 (dev fest)
 
Intro to Flutter
Intro to FlutterIntro to Flutter
Intro to Flutter
 
Intro to kotlin 2018
Intro to kotlin 2018Intro to kotlin 2018
Intro to kotlin 2018
 
The magic of flutter
The magic of flutterThe magic of flutter
The magic of flutter
 
Intro to Kotlin
Intro to KotlinIntro to Kotlin
Intro to Kotlin
 
Intro to Kotlin Minia GDG DevFest 2017
Intro to Kotlin Minia GDG DevFest 2017Intro to Kotlin Minia GDG DevFest 2017
Intro to Kotlin Minia GDG DevFest 2017
 
Kotlin for Frontend & Backend Web development
Kotlin for Frontend & Backend Web developmentKotlin for Frontend & Backend Web development
Kotlin for Frontend & Backend Web development
 
Kotlin for android
Kotlin for androidKotlin for android
Kotlin for android
 
Intro to Kotlin
Intro to KotlinIntro to Kotlin
Intro to Kotlin
 
Firebase
FirebaseFirebase
Firebase
 
Design for Web and Mobile
Design for Web and MobileDesign for Web and Mobile
Design for Web and Mobile
 
Towards a better higher education system by Shady Selim
Towards a better higher education system by Shady SelimTowards a better higher education system by Shady Selim
Towards a better higher education system by Shady Selim
 
Android Programing Course Material Labs
Android Programing Course Material LabsAndroid Programing Course Material Labs
Android Programing Course Material Labs
 
Android Programing Course Material
Android Programing Course Material Android Programing Course Material
Android Programing Course Material
 

Android content provider explained

  • 1. ANDROID CONTENT PROVIDER EXPLAINED Usages and examples By: Shady Yehia Selim 1
  • 2. IN FEW WORDS  ‘do something’ Filters 2
  • 3. THE BEST DESCRIPTION  When the android system or another application wants to do a specific task, it will broadcast an intent saying “can anyone do this for me“ 3
  • 4. SO IT NEEDS  Intent to describe the “mime-type” for sharing content  Broadcasting listener to answer and serve, or broadcast sender for the content to be shared 4
  • 5. IT CAN BE USED TO ….  Allow to collect data from different sources, and send one dataset result 5
  • 6. IT CAN BE USED TO ….  Support other apps, widgets, search, and others, with the same results 6
  • 7. IT CAN BE USED TO ….  Control single app roles access  Control different apps access permissions to the same data source  Control apps data source, so if the host data server was changed, you won’t have to update all the apps, only the content provider data source  Help implementing new trends and security controls like, Android for Work, Android for Education, BYOD, MDM, MAM, and MCM. 7
  • 8. IN THE LATEST ANDROID VERSION  With Android 7.1 (API level 25), the Android SDK includes the Commit Content API, which provides a universal way for IMEs to send images and other rich content directly to a text editor in an app. The API is also available in v13 Support Library as of revision 25.0.0.  In English you can use images in your keyboard  https://developer.android.com/guide/topics/text/image-keyboard.html 8
  • 9. RESOURCES  http://blog.blundellapps.co.uk/add-your-app-to-the-android-menu/  https://developer.android.com/guide/topics/providers/content-providers.html  https://developer.android.com/guide/topics/providers/content-provider-basics.html  https://developer.android.com/reference/android/content/ContentProvider.html  https://developer.android.com/guide/topics/providers/content-provider-creating.html  https://developer.android.com/training/sharing/shareaction.html 9
  • 10. RESOURCES  https://developer.android.com/training/sharing/send.html  https://developer.android.com/training/testing/integration-testing/content-provider- testing.html  https://www.tutorialspoint.com/android/android_content_providers.htm  http://www.vogella.com/tutorials/AndroidSQLite/article.html  http://www.grokkingandroid.com/android-tutorial-writing-your-own-content-provider/  https://code.tutsplus.com/tutorials/android-fundamentals-working-with-content-providers-- mobile-5549 10