I have a problem when inserting a string returned by a webService a ListArray integer.
I have a problem debugging is that the loop lacks an iteration and then not run some sentences. I put the code of the part that fails:
if (inputStream! = null)
{
result = convertInputStreamToString (inputStream);
Log.i ("Asyn", "result Volser:" + result);
String [] aux = result.split (";");
serviciosSi.clear ();
for (int i = 0; i <aux.length; i ++)
{
Log.i ("Asyn", "for" + aux [i]);
serviciosSi.add (Integer.parseInt (aux [i]));
Log.i ("Asyn", "tamsi:" + serviciosSi.size ());
Log.i ("Asyn", "insert aux" + serviciosSi.get (i));
}
Log.i ("Asyn", "tamsi:" + serviciosSi.size ());
secure = "1";
progressDialog.setProgress (43);
}
This is the logcat:
I/Asyn(8761): result volSer: 1;4;7
I/Asyn(8761): for: 1
I/Asyn(8761): tamSI: 1
I/Asyn(8761): inserto aux: 1
I/Asyn(8761): for: 4
I/Asyn(8761): tamSI: 2
I/Asyn(8761): inserto aux: 4
I/Asyn(8761): for: 7
It should also show:
I/Asyn(8761): tamSI: 3
I/Asyn(8761): inserto aux: 7
I/Asyn(8761): tamSI: 3
and output for:
I/Asyn(8761): tamSI: 3
Can anyone help me?
Thank's you for your time and help.
0 comments:
Post a Comment