Android Content Providers - University of Texas at Austin

Android Content Providers

Using Media Data

Media Manager

playlists, songs, artists...

Music Player

2

Using Media Data

Media Manager

Music Player

Content Inter-process communication Content

Provider

(IPC) channel

Resolver

3

Client-side: content resolver

? ImMpeledmiaented by Android: MgaentCaognetrentResolver()

Music Player

? API: "CRUD" -- similar to database

? create (insert)

C?? oruneptterdnivatete(qIunetrey)r-process communication

P?rodveidleetre

(IPC) channel

Content Resolver

ContentResolver.html

4

Service-side: content provider

Media Manager

Content Provider

Android's framework

a few functions implemented by the content provider's owner (Media)

query insert update

delete

Music

Player

common code:

Use any

handling IPC

Inter-pro(shdcItaaPoevtraCeasbgs)taoecsc.uehDosaeomnnam'nt eulnicationrsdeeeqrsiuaeelrRiCiszaetalositsz,inoaodtntleaiv/otneantr

5

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download