title: Asynctask issue on android version < 4
body: <p>I have developed an app to support android os 4 and above. I have used an Asynctask to make an web service call during app start up. </p>
  
  <p>Later I have changed my minSdkVersion to 9. To support android 2.3 and above. But the same code throws below error. </p>
  
  <p><strong>Calling AsyncTask from SplashActivity thread</strong></p>
  
  <blockquote>
  <pre><code>  mSplashTread = new Thread() {           @Override           public void run() {
            try {
                int waited = 0;
                while (mActive &amp;&amp; (waited &lt; mSplashTime)) {
                    sleep(100);
                    if (mActive) {
                        waited += 100;
                    }
                }
            } catch (InterruptedException e) {
                AppUtil.getInstance().logErrorMessage(TAG, e.getMessage());
            } finally {
                if (mIsBackPressed) {
                    finish();
                } else {
                    GetMobilePremissionWebservice getMobilePermissionWebservice = new GetMobilePremissionWebservice(
                            mContext, SplashActivity.this);
                    getMobilePermissionWebservice.getMobilePermissionInfo();
                }
            }           }       };
  </code></pre>
  </blockquote>
  
  <p><strong>Log:</strong></p>
  
  <blockquote>
    <p>Caused by: java.lang.RuntimeException: Can't create handler inside
    thread that has not called Looper.prepare() at
    android.os.Handler.(Handler.java:121) at
    android.os.AsyncTask$InternalHandler.(AsyncTask.java:421) at
    android.os.AsyncTask$InternalHandler.(AsyncTask.java:421)</p>
  </blockquote>
  
  <p>I have checked on the web. Someone saying that the Asynctask internally using the Handler. when it tries to access the UI from doInBackgrond(). 
  But the same code is working fine in os 4 and above. I don't know what is the issue with Asynctask on Android versions 2.3. </p>
  
  <p>Please help me on this. </p>