Hi,
In Android if you are doing some operation in background Thread,and want to update respective Game UI once data received. In this case you have to move from background thread to UI Thread.
In your case you are updating UI in background Thread so I would like to suggest you to use following code.
activity.runOnUiThread(new Runnable() {
public void run() {
//You can write Ui code here
}
});
Let me know if it helps
.
Thanks
Vishnu Garg