編輯:關於android開發
Content providers manage access to a structured set of data. They encapsulate the data, and provide mechanisms for defining data security. Content providers are the standard interface that connects data in one process with code running in another process.
//content provider是連接兩個進程間數據的標准接口
When you want to access data in a content provider, you use the ContentResolver
object in your application's Context
to communicate with the provider as a client. The ContentResolver
object communicates with the provider object, an instance of a class that implements ContentProvider
. The provider object receives data requests from clients, performs the requested action, and returns the results.
//當你想訪問content provider中的數據時,你要使用content resolver對象作為一個client來和contentprovider這個server來通信。content resolver和一個provider對象通信,這個對象是一個實現了contentprovider的實例。這個provider接收到了client的請求,執行請求操作,然後返回結果。
You don't need to develop your own provider if you don't intend to share your data with other applications. However, you do need your own provider to provide custom search suggestions in your own application. You also need your own provider if you want to copy and paste complex data or files from your application to other applications.
Android itself includes content providers that manage data such as audio, video, images, and personal contact information. You can see some of them listed in the reference documentation for theandroid.provider
package. With some restrictions, these providers are accessible to any Android application.
The following topics describe content providers in more detail:
ListView中響應item的點擊事件並且刷新界面,listviewitem---恢復內容開始--- 最近在在實現listview功能中遇到了這個問題: 點擊事件寫在了
AngularJS進階(二十八)解決AngualrJS頁面刷新導致異常顯示問題 解決AngualrJS頁面刷新導致異常顯示問題 緒 俗話說,細節決定成敗,編程亦是如此
編譯android源碼6---運行android編譯源碼 1.配置環境變量 (/media/M_hM_=M_M_dM__M_6/Download/442為androi
redmine 整合ldap 用戶首先要配置好LDAP 不然會把你累死LDAP的安裝過程在博客目錄中找一下()要對應slapd.conf配置文件來寫 我們需要三份數據文件