you can cancel the AsyncTask forcefully by setting cancel(true) . or you can check condition isCancelled() true or false.