I am trying to send a reponse object (soapobject) to another activity.
Note: I am not creating the object , it is recieved as a response from a webservice.
My logic in the first activity is that if the response contains one or more results ,then send it to the next activity for further processing (otherwise show a "no results
" message)
MY problem : putExtra
does not support sending an non serilaized
or non parcelable object
.
Error message : The method putExtra(String, boolean) in the type Intent is not applicable for the arguments (String, SoapObject)
here is my code any suggestions ?
SoapObject soapResponse = soaphttp.fetchNextCatalogueRange(0, numberOfItems);
Intent ResultsActivityIntent = new Intent(MainActivity.this,SearchResultsActivity.class);
// Send data object with the Intent
ResultsActivityIntent.putExtra("ResultObj", soapResponse);
startActivity(ResultsActivityIntent);