6.3.1.3.23. LayerContentProvider

public class LayerContentProvider extends ContentProvider

6.3.1.3.23.1. Fields

6.3.1.3.23.1.1. mMap

protected MapContentProviderHelper mMap

6.3.1.3.23.2. Methods

6.3.1.3.23.2.1. delete

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

6.3.1.3.23.2.2. getLayerByUri

protected Layer getLayerByUri(Uri uri)

6.3.1.3.23.2.3. getStreamTypes

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

6.3.1.3.23.2.4. getType

public String getType(Uri uri)

6.3.1.3.23.2.5. insert

public Uri insert(Uri uri, ContentValues contentValues)

6.3.1.3.23.2.6. onCreate

public boolean onCreate()

6.3.1.3.23.2.7. openFile

public ParcelFileDescriptor openFile(Uri uri, String mode)

6.3.1.3.23.2.8. 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, ...);

6.3.1.3.23.2.9. update

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