简体   繁体   中英

How to bind a SOAP web service response data to a SpinnerView in Android?

I need to display the names from SOAP web services, when I was singin my application next page spinner and some textviews. I'm getting response about text fields.

But I need to know how to get data into the spinner?

Basically you what you need to.

  • First you need to send a HTTP request to your server.And you better do via AsyncTask without interrupting your UI thread.

  • Secondly you need to parse the response from your request according to your needs.The response from web service can be either XML or JSON or something else.

  • And the last one you need to write your custom adapter to populate your spinner and then set it as your spinner adapter.

在异步任务中将其从Web服务获取到数组中,然后从中填充微调框。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM