Are onTouch(), onClick(), runOnUiThread() running in the same UI thread sequentially? Or do I have to worry about synchronization issue among them?
Thanks.
Are onTouch(), onClick(), runOnUiThread() running in the same UI thread sequentially? Or do I have to worry about synchronization issue among them?
Thanks.
Are onTouch(), onClick(), runOnUiThread() running in the same UI thread sequentially?
Yes. 99.9% of the time, Android will be calling into your methods on the main application thread. The exceptions are:
AsyncTask