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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -