How to detect GUI thread on Android?
<p>Is there a robust way to detect if Thread.currentThread() is the Android system GUI-thread in an application?
I would like to put some asserts in my model code that asserts that only one thread (eg the gui-thread) accesses my state, to assure that no kind of synchronization is neccesary.</p>
