Commit ef665446 authored by Simon Kirsten's avatar Simon Kirsten

Updated Android Integration

parent 3b77df01
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()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment