-
public class FixtureUtilsCreated by willpride on 3/27/18.
-
-
Method Summary
Modifier and Type Method Description static CursorgetFixtureList(Context context)Provides a listing of the names and IDs of all the fixtures in the system. static List<String>getFixtureIdList(Context context)static CursorgetFixtureData(Context context, String fixtureId)Returns the raw XML for a fixture with the given instance ID. static StringgetFixtureXml(Context context, String fixtureId)-
-
Method Detail
-
getFixtureList
static Cursor getFixtureList(Context context)
Provides a listing of the names and IDs of all the fixtures in the system. content://org.commcare.dalvik.fixture/fixturedb/ Response content column required id yes instance_id yes
- Parameters:
context- Android Context
-
getFixtureIdList
static List<String> getFixtureIdList(Context context)
-
getFixtureData
static Cursor getFixtureData(Context context, String fixtureId)
Returns the raw XML for a fixture with the given instance ID. content://org.commcare.dalvik.fixture/fixturedb/[FIXTURE_ID] column required id yes instance_id yes content yes Note that the value returned is the full body of the attachment, which means this API is only viable for communicating with attachments that are not particularly large, depending on the amount of memory on the device.
- Parameters:
context- Android ContextfixtureId- the ID of the fixture to retrieve
-
getFixtureXml
static String getFixtureXml(Context context, String fixtureId)
-
-
-
-