java - HttpResponse can return list in android through RESTFUL web service? -


i new android.i using restful web services.i have 1 field category in mysql database.now need value database , put autocompletetextview.but can values database.and know how set value autocompletetextview.but don't know how can list httpresponse. httpresponse can return list?

you shouldn't returning httpresponse rest service. return javax.ws.rs.core.response instead. can insert data entity response this:

// method annotation here public response somegetmethod() {     // build listfromdatabase here     return response.ok(listfromdatabase).build(); } 

Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -