You cannot update UI from a non ui thread. You have a timer which runs on a background thread and you update UI in updatescreen
.
Use runOnUiThread
and update ui or use a Handler
with a delay
runOnUiThread(new Runnable() {
@Override
public void run() {
// update ui here
}
});