Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download and install the area mapping application on your device

    -Plug your Android device into your computer
    -Drag the downloaded AreaMap.apk file from your downloads folder on your desktop onto your Android device icon
    -Confirm that the file appears on your device storage
    -If you do not have one already, download a File Explorer from the Google Play store onto your Android device
    -Using the File Explorer, search for and locate the AreaMap.apk file on your Android device
    -Select the AreaMap icon and install the application onto your phone
    -Note: You will likely be prompted to change the settings on your phone to allow for this installation to occur, namely allowing applications to be installed from unknown sources. 

  2. Navigate to the form builder for your app on CommCare HQ
  3. Navigate to where you want to insert the question
  4. Add an "Android App Callout" question type under the "Advanced" tab
  5. Create an ID and label as you would a normal question
  6. Under "Intent ID" write: org.commcare.mapping.AreaCalculator
  7. Under "Logic" you can enforce the same things as you would a normal question, IE enforce this must be a realistic value, non-null, etc
  8. That's it! To read more about what's going on under the hood see this page.

...