Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate a spinner from a vb webservice

Status
Not open for further replies.

Rowse

Technical User
Dec 20, 2002
62
GB
I have a webservice which passes an array to an android app, however i've been unable to work out how to populate the spinner from this.

I'd also like to save it to a sharedpreference to use when the webservice is unavailable.
I haven't been able to work out how to do it from googling.

I get the webservice using:
SoapObject response = (SoapObject)envelope.getResponse();
and "response.toString()" brings back:
anyType{anyType=Times New Roman; anyType=Arial; anyType=Verdana; anyType=Comic Sans MS; }

I'm trying to save this into:
SharedPreferences storage = getSharedPreferences("setup", MODE_PRIVATE);
SharedPreferences.Editor editor = storage.edit();
editor.putString("Spinner1", response.toString());
editor.commit();

then from this, call it into a spinner on a different page.
When i try, it just shows the "" message above in 1 line and doesnt split them up.

Any suggestions how to solve, if it is possible.

Supplier of Asset Financial Software
Web based, and pocket pc compatible
b3computing.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top