Mobile Development Articles

Page 156 of 156

Handler in android ?

Ankith Reddy
Ankith Reddy
Updated on 30-Jul-2019 14K+ Views

We cant touch background thread to main thread directly so handler is going to collect all events which are available in main thread in a queue and posses this queue to looper class.In android Handler is mainly used to update the main thread from background thread or other than main thread. There are two methods are in handler.Post() − it going to post message from background thread to main thread using looper.sendmessage() − if you want to organize what you have sent to ui (message from background thread) or ui functions. you should use sendMessage().This example demonstrate about how to ...

Read More
Showing 1551–1551 of 1,551 articles
« Prev 1 152 153 154 155 156 Next »
Advertisements