File tree 1 file changed +12
-1
lines changed 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,21 @@ Upload it to your server and pass "uploaded_file" as the second parameter to the
64
64
65
65
request.addParameter("parameter-name", "parameter-value");
66
66
67
- //If you want to add an array of strings, you can simply to the following:
67
+ //If you want to add an array of strings, you can do the following:
68
68
request.addParameter("array-parameter-name", "value1");
69
69
request.addParameter("array-parameter-name", "value2");
70
70
request.addParameter("array-parameter-name", "valueN");
71
+
72
+ //or
73
+ String[] values = new String[] {"value1", "value2", "valueN"};
74
+ request.addArrayParameter("array-parameter-name", values);
75
+
76
+ //or
77
+ List<String> valuesList = new ArrayList<String>();
78
+ valuesList.add("value1");
79
+ valuesList.add("value2");
80
+ valuesList.add("valueN");
81
+ request.addArrayParameter("array-parameter-name", valuesList);
71
82
72
83
request.setNotificationConfig(
73
84
android.R.drawable.ic_menu_upload, //Notification icon. You can use your own app's R.drawable.your_resource
You can’t perform that action at this time.
0 commit comments