|
|
@@ -33,6 +33,7 @@ import org.json.JSONException;
|
|
|
import org.json.JSONObject;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
+import java.net.URLEncoder;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
@@ -279,8 +280,10 @@ public class VolleyUtil {
|
|
|
context = pContext;
|
|
|
requestType = pRequestType;
|
|
|
if (method == METHOD_GET) {
|
|
|
- pUrl = pUrl + "?barcode=" + pBarcode;
|
|
|
+ String encode = URLEncoder.encode(pBarcode);
|
|
|
+ pUrl = pUrl + "?barcode=" + encode;
|
|
|
Log.e(TAGURL, pUrl);
|
|
|
+
|
|
|
stringRequest = new StringRequest(Request.Method.GET, pUrl, stringListener, errorListener) {
|
|
|
@Override
|
|
|
public Map<String, String> getHeaders() throws AuthFailureError {
|