首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

Android开发中封存数据的四种方法方法

2012-08-03 
Android开发中保存数据的四种方法方法在?四,Network这是借助Internet来存储我们要的数据,这是CS结构的存储

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);
?

?

?

?

热点排行