File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Samplers is a framework to build mobile citizen science applications.
4242 compile ('com.google.android.gms:play-services-location:12.0.1')
4343 compile ('com.google.android.gms:play-services-maps:12.0.1')
4444
45- // if you will use Authentication with Google, add this dependencies (you should use the latest version)
45+ // if you will use authentication with Google, add this dependencies (you should use the latest version)
4646 compile ('com.google.android.gms:play-services-auth:12.0.1')
4747
4848 // the framework dependency
@@ -61,7 +61,10 @@ Instantiation can be done manually or using gradle class generator.
6161 2. Override the **onCreate()** method and set the NetworkConfiguration:
6262 ```java
6363 NetworkConfiguration.setURL("http://192.168.1.10/samplers/upload.php");
64- NetworkConfiguration.setPARAM_NAME("sample");
64+ NetworkConfiguration.setPARAM_NAME_SAMPLE("sample");
65+ // Optional if you will use authentication
66+ NetworkConfiguration.setPARAM_NAME_USER_ID("user_id");
67+ NetworkConfiguration.setPARAM_NAME_AUTHENTICATION_TYPE("authentication_type");
6568 ```
6669
6770 - You can create your own Main Activity and start the TakeSampleActivity like this:
You can’t perform that action at this time.
0 commit comments