inThread--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertMainThread</h4>
<pre>public static&nbsp;void&nbsp;assertMainThread()</pre>
<div class="block">Throws an <a href="http://d.android.com/reference/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> if called on a thread other than the main
 thread.</div>
</li>
</ul>
<a name="assertBackgroundThread--">
<!--   -->
</a>
<ul class="blockList">