私のコードでは、サーバーへのリクエストを実行する行で IllegalArgumentException (インデックス 85 のクエリで不正な文字) をキャッチします。作業はパターンコマンドとしてビルドされ、別のタスクは正しく完了しますが、これは完了しません:
public CreateCommentTask(String barcodeId, String ball, String comment,
String sign) {
super(getApplicationUrl() + "?command=createComment" + "&barcodeId="
+ barcodeId + "&ball=" + ball + "&text=" + comment
+ "&sessionId=" + sign);
// TODO Auto-generated constructor stub
}
したがって、アドレスと文字列形式のデータしかありません。次の行でアプリがクラッシュします。
HttpResponse response = client.execute(task.createRequest());
あなたはなにか考えはありますか?