EDIT1:
I did change the code such that the update was done within the while loop. HOWEVER, NO CHANGE. SHOWN THIS IN CODE BELOW. ALSO, removed other
onProgressUpdate
runs in the UI thread.
So you should be able to interact with the UI with this method, inside your loop. However, try to use the given parameter of the method :
protected void onProgressUpdate(String... values)
{
results1.append(values[0]);
results1.append("\n");
}
Calling super.onProgressUpdate(values);
is useless as the default implementation is empty.