com.beem.project.beem.providers
Class AvatarProvider
java.lang.Object
android.content.ContentProvider
com.beem.project.beem.providers.AvatarProvider
- All Implemented Interfaces:
- ComponentCallbacks
public class AvatarProvider
- extends ContentProvider
A simple content provider we expose the differents avatar downloaded.
|
Nested Class Summary |
static interface |
AvatarProvider.Columns
The differents columns available in the AvatarProvider. |
|
Method Summary |
int |
delete(Uri uri,
String selection,
String[] selectionArgs)
|
String |
getType(Uri uri)
|
Uri |
insert(Uri uri,
ContentValues values)
|
boolean |
onCreate()
|
ParcelFileDescriptor |
openFile(Uri uri,
String mode)
|
Cursor |
query(Uri uri,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder)
|
int |
update(Uri uri,
ContentValues values,
String selection,
String[] selectionArgs)
|
| Methods inherited from class android.content.ContentProvider |
applyBatch, attachInfo, bulkInsert, getContext, getPathPermissions, getReadPermission, getWritePermission, isTemporary, onConfigurationChanged, onLowMemory, openAssetFile, openFileHelper, setPathPermissions, setReadPermission, setWritePermission |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_URI
public static final Uri CONTENT_URI
- The content uri of this provider.
CONTENT_TYPE
public static final String CONTENT_TYPE
- The MIME type of a CONTENT_URI directory of Beem avatars.
- See Also:
- Constant Field Values
CONTENT_ITEM_TYPE
public static final String CONTENT_ITEM_TYPE
- The MIME type of a CONTENT_URI subdirectory of a single Beem avatar.
- See Also:
- Constant Field Values
AvatarProvider
public AvatarProvider()
- Create an AvatarProvider.
onCreate
public boolean onCreate()
- Specified by:
onCreate in class ContentProvider
openFile
public ParcelFileDescriptor openFile(Uri uri,
String mode)
throws FileNotFoundException
- Overrides:
openFile in class ContentProvider
- Throws:
FileNotFoundException
query
public Cursor query(Uri uri,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder)
- Specified by:
query in class ContentProvider
update
public int update(Uri uri,
ContentValues values,
String selection,
String[] selectionArgs)
- Specified by:
update in class ContentProvider
delete
public int delete(Uri uri,
String selection,
String[] selectionArgs)
- Specified by:
delete in class ContentProvider
insert
public Uri insert(Uri uri,
ContentValues values)
- Specified by:
insert in class ContentProvider
getType
public String getType(Uri uri)
- Specified by:
getType in class ContentProvider
Copyright © 2009 Beem-project.com. All Rights Reserved.