Android开发中保存数据的四种方法方法
在?
四,Network
这是借助Internet来存储我们要的数据,这是CS结构的存储方式,也是点一下名了。
如何使用 Content Provider
下边是用户经常接触到的几个典型Content Provider应用:
? ? * Content Provider Name : Intended Data
? ? * Browser : Browser bookmarks, Browser history, etc.
? ? * CallLog : Missed calls, Call datails, etc.
? ? * Contacts : Contact details
? ? * MediaStore : Media files such as audio, Video and Images
? ? * Settings : Device Settings and Preferences
调用Content Provider资源的标准URI结构:
?
Uri allCalls = Uri.parse("content://call_log/calls");Cursor c = managedQuery(allCalls, null, null, null, null);??
?
?