Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: is View.onClick() method invoked on main UI thread?

Tags:

android

Say that a user clicks on a Button. Is the resulting onClick() function invoked on the main UI thread of the activity?

like image 575
zer0stimulus Avatar asked Jul 19 '10 21:07

zer0stimulus


1 Answers

Yes it is. And then you launch your crazy networking stuff in a background thread.

like image 117
yanchenko Avatar answered Oct 12 '22 13:10

yanchenko