android - Append information to TableLayout in Thread -


i trying figure out how access view thread in mainactivity class. need able append information table every 5 seconds gathered. how go doing when function in thread()?

thanks.

create 1 hanlder field , initialize in oncreate of activity. , hanlder access ui thread. i.e access views

or use

 runonuithread(new runnable() {             public void run() {                //code needs ran in ui thread)              }         }); 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -