Skip to content

Commit c315b0c

Browse files
authored
Update README.md
1 parent a7e5388 commit c315b0c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)