- Sep 2, 2019
- 2
- 0
- 0
I read a lot that we cannot change ui from another thread but I MAKE A THREAD AND CHANGE UI simply AND I get confused .
new Thread (new Runnable(){
public void Run(){
b.setbackgroundcolor(Color.blue);
}
}
b is a button . and it works without any problem without handler any thing else !! what it means we can change in ui in other thread ?
new Thread (new Runnable(){
public void Run(){
b.setbackgroundcolor(Color.blue);
}
}
b is a button . and it works without any problem without handler any thing else !! what it means we can change in ui in other thread ?