Skip to content
Snippets Groups Projects
Commit ef665446 authored by Simon Kirsten's avatar Simon Kirsten
Browse files

Updated Android Integration

parent 3b77df01
No related branches found
No related tags found
No related merge requests found
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().appendEncodedPath(path.substring(1));
if (params != null) {
for (Map.Entry<String, String> entry : params.entrySet()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment