I'm using soap web service for getting data's in MySQL server using android,I split those data's and store in array,Now I try to convert in array list.I tried it doesn't work... Can you please tell how can i do that one? Thanks in advance
//splitting the soap URL data's
String resultArr[] = response.toString().split(";");
m.setText(resultArr[1].split("-")[0]); //split the values one by one
ma.setText(resultArr[1] .split("-")[1]);
a.setText(resultArr[4].split("-")[0]);
aa.setText(resultArr[4].split("-")[1]);
e.setText(resultArr[0].split("-")[0]);
ea.setText(resultArr[0].split("-")[1]);
d.setText(resultArr[5].split("-")[0]);
da.setText(resultArr[5].split("-")[1]);
hk.setText(resultArr[2].split("-")[0]);
hka.setText(resultArr[2].split("-")[1]);
h.setText(resultArr[3].split("-")[0]);
ha.setText(resultArr[3].split("-")[1]);
If i give a particular date the output will be like this.
Afternoon-23434;morning-32423423;evening-442443;night-343434;others-43434;
If i store it in array,It shows the answer.Sometimes the evening and others doesn't appear in some other date. so,the array values decremented and the app will be force closed
Avoid that one I tried array list
Thanks in advance
0 comments:
Post a Comment