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
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