How to know if this thread is a UI Thread
<p>Is there any way on Android to know, if the thread running my code, is the UI Thread or not ? In swing there was  <code>SwingUtilities.isEventDispatchThread()</code> to tell me if i am on the UI Thread, or not. Is there any function in the Android SDK that lets me know this ? </p>
