SyntaxFix
Write A Post
Hire A Developer
Questions
u can check onCancelled() once then :
protected Object doInBackground(Object... x) {
while (/* condition */) { if (isCancelled()) break; } return null;
}