Package 

Class FixtureUtils


  • 
    public class FixtureUtils
    
                        

    Created by willpride on 3/27/18.

    • 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
      • 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 Context
        fixtureId - the ID of the fixture to retrieve