android content provider explained

10

Click here to load reader

Upload: shady-selim

Post on 21-Jan-2018

203 views

Category:

Mobile


1 download

TRANSCRIPT

Page 1: Android content provider explained

ANDROID CONTENT PROVIDER EXPLAINED

Usages and examples

By: Shady Yehia Selim

1

Page 2: Android content provider explained

IN FEW WORDS

‘do something’ Filters

2

Page 3: Android content provider explained

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

Page 4: Android content provider explained

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

Page 5: Android content provider explained

IT CAN BE USED TO ….

Allow to collect data from different sources, and send one dataset result

5

Page 6: Android content provider explained

IT CAN BE USED TO ….

Support other apps, widgets, search, and others, with the same results

6

Page 7: Android content provider explained

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

Page 8: Android content provider explained

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

Page 9: Android content provider explained

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

Page 10: Android content provider explained

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