thread changing ui

bahaei

New member
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 ?
 
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 ?
Join the site so you can post a screenshot. Sounds like you are confusing the UI with either a theme or a different launcher etc
 
It seems like you're trying to write code, are you possibly intending to reply to a thread in our developer's section? You'd need to be a member in order to reply to a thread anywhere or post a topic in a forum section other than Ask a Question...
 
Re: CHanging UI from another Thread

Hi,welcome
Are you a app developer?
 
Threads merged and moved to the Software Development forum.
 

Trending Posts

Forum statistics

Threads
956,131
Messages
6,966,701
Members
3,163,471
Latest member
Malvineous