Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Stream Server Project
Stream Server
Commits
ef665446
Commit
ef665446
authored
Dec 01, 2019
by
Simon Kirsten
Browse files
Updated Android Integration
parent
3b77df01
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/assets/StreamServerClient.java
View file @
ef665446
package
de.simonkirsten.streamserverclient
;
package
com.example.myapplication
;
import
android.net.Uri
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.Nullable
;
import
android.text.TextUtils
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
import
org.json.JSONArray
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
...
...
@@ -44,7 +45,7 @@ public class StreamServerClient {
}
private
String
doRequest
(
String
path
,
@Nullable
Map
<
String
,
String
>
params
)
throws
IOException
{
Uri
.
Builder
builder
=
baseUri
.
buildUpon
().
appendPath
(
path
);
Uri
.
Builder
builder
=
baseUri
.
buildUpon
().
append
Encoded
Path
(
path
.
substring
(
1
)
);
if
(
params
!=
null
)
{
for
(
Map
.
Entry
<
String
,
String
>
entry
:
params
.
entrySet
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment