ProgressDialog crashing in onPreExecute
<p>I get a crash "Can't create handler inside thread that has not called Looper.prepare()" in a onPreExecute in a thread. It was my understanding that onPreExecute runs on the UI Thread, so how can it crash?</p>

<pre><code>public void onPreExecute() {
        if (loading == null || !loading.isShowing())
            loading = ProgressDialog.show(co, "",
                    "Retrieving Geolocation...", true);
    }
</code></pre>

<p>Quite strangely, it works sometimes, and sometimes not</p>
