我想通过使用 url 来请求 wfc 服务,我在 url 中添加了三个参数,这是运行时错误的非法参数异常
String myUrl;
myUrl = String.format("http://10.0.2.2:51382/RestServiceImpl.svc/jsons/? Location=%s&GROUP=%s&asondate=%s",items,items1,finalDate);
日志猫
07-03 10:04:31.602: E/AndroidRuntime(2790): java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.androidhive.innovate/com.androidhive.innovate.AndroidJSONParsingActivity}: java.lang.IllegalArgumentException: Illegal character in query at index 49: http://10.0.2.2:51382/RestServiceImpl.svc/jsons/? Location=ArihantWanarpet&GROUP=ArihantShowroom&asondate=2013-07-03