the callback function to use runonUIthread for android
runOnUiThread(
new Runnable() {
@Override
public void run() {
//TODO put your stuffs here
}
}
);