-
Notifications
You must be signed in to change notification settings - Fork 1
Example 1
javier7ar edited this page Nov 3, 2017
·
15 revisions
A possible application that can be built is an application to relieve insects. The user answers some questions regarding the insect that wants to relieve, takes some photos and sends the sample online.
{
"project": {
"app_path" : "app/src/main/java/com/example/insects/",
"package_name" : "com.example.insects"
} ,
"application": {
"title" : "Insect Survey",
"welcomeMessage" : "Welcome to the application to relieve insects and discover species that have advanced due to climate change",
"networkConfiguration" : {
"url" : "http://www.example.com/samples/upload.php",
"paramName" : "sample"
},
"googleMaps_API_KEY" : "YOUR_GENERATED_GOOGLE_API_KEY"
} ,
"workflow": {
"actionLabel" : "Relieve insects",
"steps": [
{
"id" : 1,
"type" : "Photo",
"text" : "Please, take a photo of the insect",
"nextStepId": 2
},
{
"id" : 2,
"type" : "Photo",
"text" : "Put an object next to the insect to compare its size (a bill, a card, a pen, etc.)",
"nextStepId": 3
},
{
"id" : 3,
"type": "MultipleSelect",
"title" : "How it moves?",
"options" : [
{
"id":1,
"text":"It walks"
},
{
"id":2,
"text":"It flies"
},
{
"id":3,
"text":"It crawls"
}
],
"nextStepId": 4
},
{
"id" : 4,
"type": "SelectOne",
"title" : "How many legs does it have?",
"options" : [
{
"id":1,
"text":"4 (Four)",
"nextStepId": 5
},
{
"id":2,
"text":"6 (Six)",
"nextStepId": 5
},
{
"id":3,
"text":"8 (Eight)",
"nextStepId": 5
},
{
"id":4,
"text":"I dont know",
"nextStepId": 5
}
]
},
{
"id" : 5,
"type": "SelectOne",
"title" : "Does it have antennas?",
"options" : [
{
"id":1,
"text":"Yes",
"nextStepId": 6
},
{
"id":2,
"text":"No",
"nextStepId": 6
},
{
"id":3,
"text":"I dont know",
"nextStepId": 6
}
]
},
{
"id" : 6,
"type": "SelectOne",
"title" : "What size does it have?",
"options" : [
{
"id":1,
"text":"small (like a mosquito)",
"nextStepId": 7
},
{
"id":2,
"text":"medium (like a dragon-fly)",
"nextStepId": 7
},
{
"id":3,
"text":"big (like a locust)",
"nextStepId": 7
},
{
"id":4,
"text":"I dont know",
"nextStepId": 7
}
]
},
{
"id" : 7,
"type": "MultipleSelect",
"title" : "What colors does it have?",
"options" : [
{
"id":1,
"text":"Green"
},
{
"id":2,
"text":"Brown"
},
{
"id":3,
"text":"Black"
},
{
"id":4,
"text":"Red"
},
{
"id":5,
"text":"Yellow"
},
{
"id":5,
"text":"White"
}
],
"nextStepId": 8
},
{
"id" : 8,
"type": "Location",
"title" : "Please set the location where the insect was found"
}
]
}
}