sinkuri256 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

calling 0-parameters api function with beanshell #399

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The android.bsh code is:

  call(String method, JSONArray params) {
    JSONObject request = new JSONObject();
    request.put("id", id);
    request.put("method", method);
    request.put("params", params);
.....

seems not supporting api function with zero parameters, like batteryGetLevel(). 
How to solve this problem? What value should be set to "params"?

Original issue reported on code.google.com by andrea.i...@gmail.com on 16 Aug 2010 at 2:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision d50e223458.

Original comment by Alexey.R...@gmail.com on 17 Aug 2010 at 3:48