android - Passing parameter in request handler is not showing correct results -


new android, trivial issue not resolve in last 3 hours.

when use parameter called keyword, not showing correct results. otherwise working fine if pass keyword value in url. not sure, how pass parameter in url correctly retrieves correct result.

 requesthandle requesthandle = client.get("http://koha-dev.cvpl.com.sg:9900/biblios?version=1.0&operation=searchretrieve&query=" + keyword + "&startrecord=1&maximumrecords=10&recordschema=dc", new texthttpresponsehandler() { 

above not showing correct results.

 requesthandle requesthandle = client.get("http://koha-dev.cvpl.com.sg:9900/biblios?version=1.0&operation=searchretrieve&query=knowledge&startrecord=1&maximumrecords=10&recordschema=dc", new texthttpresponsehandler() { 

is working correctly.

i tried check value of keyword:

toast.maketext(getactivity().getapplicationcontext(), "checkdetails " + keyword, toast.length_long).show(); 

result below:

checkdetails keyword=knowledge

any suggestions welcome. in advance.

i changed

                params.put("keyword", keyword); 

to

                params.put("query", keyword); 

which resolved issue.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -