Android OnPOst excute is not called
<p>I have an async task. It runs a sql query.It should go to the onPostExecute automatically, but it does not always go there. THere is no exception.The logs are also fine.</p>

<pre><code>class QueryDbTask extends AsyncTask&lt;String, Void, Cursor&gt; {
protected Cursor doInBackground(String... params) {
.... 
//sql query
try {
         cur=activityObject.execSQL(Query);

   }catch (Exception e) {
        e.printstacktrace
}
return cur;}
protected void onPostExecute(Cursor result) {   
}
</code></pre>

<p>Under what conditions onPostExecute would not be called?</p>

<p>i debugged and found that it was not reaching onPost Execute</p>

<p>Can two async task simulataneoulsy?</p>
