文件名称:ContentProvider
介绍说明--下载内容均来自于网络,请自行研究使用
当应用继承ContentProvider类,并重写该类用于提供数据和存储数据的方法,就可以向其他应用共享其数据。虽然使用其他方法也可以对外共享数据,但数据访问方式会因数据存储的方式而不同,如:采用文件方式对外共享数据,需要进行文件操作读写数据;采用sharedpreferences共享数据,需要使用sharedpreferences API读写数据。而使用ContentProvider共享数据的好处是统一了数据访问方式。-When applying inheritance ContentProvider class, and override methods class is used to provide data and storage of data, it can share its data to other applications. Although the use of other methods may also external shared data, but data access because of the way data is stored and different, such as: the use of papers share of external data, the need for file operations to read and write data use sharedpreferences share data, you need to read sharedpreferences API write data. The benefits of using shared data ContentProvider unified data access method.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ContentProviderDemo1
....................\.classpath
....................\.project
....................\.settings
....................\.........\org.eclipse.jdt.core.prefs
....................\AndroidManifest.xml
....................\assets
....................\gen
....................\...\com
....................\...\...\imooc
....................\...\...\.....\contentproviderdemo1
....................\...\...\.....\....................\BuildConfig.java
....................\...\...\.....\....................\R.java
....................\libs
....................\....\android-support-v4.jar
....................\proguard-project.txt
....................\project.properties
....................\res
....................\...\drawable-hdpi
....................\...\.............\ic_launcher.png
....................\...\drawable-ldpi
....................\...\drawable-mdpi
....................\...\.............\ic_launcher.png
....................\...\drawable-xhdpi
....................\...\..............\ic_launcher.png
....................\...\layout
....................\...\......\activity_main.xml
....................\...\menu
....................\...\....\main.xml
....................\...\values
....................\...\......\dimens.xml
....................\...\......\strings.xml
....................\...\......\styles.xml
....................\...\values-sw600dp
....................\...\..............\dimens.xml
....................\...\values-sw720dp-land
....................\...\...................\dimens.xml
....................\src
....................\...\com
....................\...\...\imooc
....................\...\...\.....\contentproviderdemo1
....................\...\...\.....\....................\MainActivity.java
....................\...\...\.....\....................\MyContentProvider.java