Synchronous HttpPost on a separate thread
<p>Im currently posting some data to a php webservice using a class that extends <code>AsyncTask</code>.</p>

<p>Now i need to make a synchronous call, because i want to show the default exception popup that my app has crashed once the data is sent (<code>previousHandler.uncaughtException(t, e)</code>).</p>

<p>Can i just disable the async functionality on the <code>AsyncTask</code>, or do you have any other suggestions</p>

<p>Here is my current code, thanks in advance:</p>

<pre><code>public void uncaughtException(Thread t, Throwable e) {

    final Writer result = new StringWriter();
    final PrintWriter printWriter = new PrintWriter(result);
    e.printStackTrace(printWriter);
    String stacktrace = result.toString();
    printWriter.close();

    String deviceUuid = Utilities.DeviceUuid(ctx, cr);
    String bluetoothName = Utilities.LocalBluetoothName();

    AsyncTasks.ErrorLogTask logTask = new AsyncTasks.ErrorLogTask(e, bluetoothName, deviceUuid, stacktrace);
    logTask.execute();

    //task wont be complete before this code below runs since its async.

    previousHandler.uncaughtException(t, e);


}
</code></pre>
