java.lang.Object | |
↳ | android.content.ContentProviderClient |
The public interface object used to interact with a ContentProvider
. This is obtained by
calling acquireContentProviderClient(Uri)
. This object must be released
using release()
in order to indicate to the system that the ContentProvider
is
no longer needed and can be killed to free up resources.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get a reference to the
ContentProvider that is associated with this
client. | |||||||||||
Call this to indicate to the system that the associated
ContentProvider is no
longer needed by this ContentProviderClient . | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
RemoteException |
---|
RemoteException |
---|
Get a reference to the ContentProvider
that is associated with this
client. If the ContentProvider
is running in a different process then
null will be returned. This can be used if you know you are running in the same
process as a provider, and want to get direct access to its implementation details.
ContentProvider
is local, returns it.
Otherwise returns null.
RemoteException |
---|
See ContentProvider.openAssetFile
.
Note that this does not
take care of non-content: URIs such as file:. It is strongly recommended
you use the ContentResolver.openAssetFileDescriptor
API instead.
See ContentProvider.openFile
. Note that
this does not
take care of non-content: URIs such as file:. It is strongly recommended
you use the ContentResolver.openFileDescriptor
API instead.
RemoteException |
---|
Call this to indicate to the system that the associated ContentProvider
is no
longer needed by this ContentProviderClient
.
RemoteException |
---|