I have no idea how to return from onPreExecute()
when some condition happens.
for instance:
@Override
protected void onPreExecute() {
if(varCancel){
//Do not execute doInBackground() method
}
super.onPreExecute();
}
the thing is, I want to cancel this process before the method doInBackground()
start.