I am using below code to get result from Asynctask
Ui thread
.....
....
int result = new MyCustomTask().execute().get();
if (result == 1) {
}
else {
}
----
----
But my doubt is "Whats the point of having an async task when get() waits for it to complete"