Threading problem with Android
<p>I am currently developing an Android app where I need to perform a method inside a thread. I have the following code in order to create the thread and perform the </p>

<pre><code>new Thread(new Runnable() { 
      @Override
      public void run() {
          new DownloadSync(getApplicationContext());
      }
}).start();
</code></pre>

<p>When I try to run this code it displays the error message in the log cat 'java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.Prepare().'</p>

<p>How can I fix this problem. Any help would be greatly appreciated. Thank you</p>
