public class AcraContentProvider
extends android.content.ContentProvider
Constructor and Description |
---|
AcraContentProvider() |
Modifier and Type | Method and Description |
---|---|
int |
delete(android.net.Uri uri,
java.lang.String selection,
java.lang.String[] selectionArgs) |
java.lang.String |
getType(android.net.Uri uri) |
static android.net.Uri |
getUriForFile(android.content.Context context,
Directory directory,
java.lang.String relativePath)
Get an uri for this content provider for the given file
|
static android.net.Uri |
getUriForFile(android.content.Context context,
java.io.File file)
Get an uri for this content provider for the given file
|
android.net.Uri |
insert(android.net.Uri uri,
android.content.ContentValues values) |
boolean |
onCreate() |
android.os.ParcelFileDescriptor |
openFile(android.net.Uri uri,
java.lang.String mode) |
android.database.Cursor |
query(android.net.Uri uri,
java.lang.String[] projection,
java.lang.String selection,
java.lang.String[] selectionArgs,
java.lang.String sortOrder) |
int |
update(android.net.Uri uri,
android.content.ContentValues values,
java.lang.String selection,
java.lang.String[] selectionArgs) |
applyBatch, attachInfo, bulkInsert, call, canonicalize, dump, getCallingPackage, getContext, getPathPermissions, getReadPermission, getStreamTypes, getWritePermission, isTemporary, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openAssetFile, openFile, openFileHelper, openPipeHelper, openTypedAssetFile, openTypedAssetFile, query, query, refresh, setPathPermissions, setReadPermission, setWritePermission, shutdown, uncanonicalize
public boolean onCreate()
onCreate
in class android.content.ContentProvider
@Nullable public android.database.Cursor query(@NonNull android.net.Uri uri, @Nullable java.lang.String[] projection, @Nullable java.lang.String selection, @Nullable java.lang.String[] selectionArgs, @Nullable java.lang.String sortOrder)
query
in class android.content.ContentProvider
@Nullable public java.lang.String getType(@NonNull android.net.Uri uri)
getType
in class android.content.ContentProvider
@Nullable public android.net.Uri insert(@NonNull android.net.Uri uri, @Nullable android.content.ContentValues values)
insert
in class android.content.ContentProvider
public int delete(@NonNull android.net.Uri uri, @Nullable java.lang.String selection, @Nullable java.lang.String[] selectionArgs)
delete
in class android.content.ContentProvider
public int update(@NonNull android.net.Uri uri, @Nullable android.content.ContentValues values, @Nullable java.lang.String selection, @Nullable java.lang.String[] selectionArgs)
update
in class android.content.ContentProvider
@Nullable public android.os.ParcelFileDescriptor openFile(@NonNull android.net.Uri uri, @NonNull java.lang.String mode) throws java.io.FileNotFoundException
openFile
in class android.content.ContentProvider
java.io.FileNotFoundException
public static android.net.Uri getUriForFile(@NonNull android.content.Context context, @NonNull java.io.File file)
context
- a contextfile
- the filepublic static android.net.Uri getUriForFile(@NonNull android.content.Context context, @NonNull Directory directory, @NonNull java.lang.String relativePath)
context
- a contextdirectory
- the directory, to with the path is relativerelativePath
- the file path