LayerContentProvider

public class LayerContentProvider extends ContentProvider

Fields

mMap

protected MapContentProviderHelper mMap

Methods

delete

public int delete(Uri uri, String s, String[] strings)

getLayerByUri

protected Layer getLayerByUri(Uri uri)

getStreamTypes

public String[] getStreamTypes(Uri uri, String mimeTypeFilter)

getType

public String getType(Uri uri)

insert

public Uri insert(Uri uri, ContentValues contentValues)

onCreate

public boolean onCreate()

openFile

public ParcelFileDescriptor openFile(Uri uri, String mode)

query

public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)

Query may be with LIMIT. See http://stackoverflow.com/a/24055457

Example:

Uri uri = Uri.parse(...);
uri = uri.buildUpon().appendQueryParameter(URI_PARAMETER_LIMIT, "2").build();
context.getContentResolver().query(uri, ...);

update

public int update(Uri uri, ContentValues contentValues, String s, String[] strings)