Context not resolved inside a runnable thread
<p>Here is the code inside main Activity class, which works fine..</p>

<pre><code>public void onStart() {
    super.onStart();

mHandler = new Handler();
    context = this;
    ...
}
</code></pre>

<p>And the following code gives problem, don't know why:</p>

<pre><code>public void onStart() {
    super.onStart();

    new Thread(new Runnable(){
            public void run(){
            mHandler = new Handler();
            context = this;
            ...
        }
    }).start();
}
</code></pre>
