http://developer.android.com/guide/topics/providers/content-providers.html
http://developer.android.com/reference/android/content/ContentProvider.html
http://developer.android.com/reference/android/content/ContentResolver.html
http://developer.android.com/reference/android/content/ContentValues.html
http://www.android1.net/Topic.aspx?BoardID=11&TopicID=305
Content provider has following APIs:
query()
insert()
update()
delete()
getType()
Application should use a ContentResolver interface to get data, get calling getContentResolver(). To use the APIs, you need to provide an URI to identify the data set.
Following is the flow of adding a phonebook entry to SIM:
1. EditContactActivity::doSaveSIMAction()
call ContentResolver.insert
2. IccProivder::insert()
implement the corresponding action of URI
3. IccPhoneBookInterfaceManager::updateAdnRecordsInEfBySearch()
Further call AdnReocrdCache, AdnRecordLoader,
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment