src/com/acouchi/Acouchi.java in acouchi-0.0.11 vs src/com/acouchi/Acouchi.java in acouchi-0.0.12

- old
+ new

@@ -8,10 +8,11 @@ import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; +import android.util.Log; import com.google.gson.Gson; import java.io.PrintWriter; import java.io.StringWriter; import java.io.Writer; @@ -61,9 +62,10 @@ { try { String methodName = uri.replace("/execute_method/", ""); String[] parameters = new Gson().fromJson(params.getProperty("parameters"), String[].class); String jsonResult = new MethodExecutor(solo, methodName, parameters).Execute(); + return new NanoHTTPD.Response(HTTP_OK, MIME_HTML, jsonResult); } catch (Throwable throwable) { return showException(throwable); } }