how I can interrupt the execution of prepare() ?
for example, when using http streams and a bad Internet channel, the prepare function takes a long time and I want to cancel it now so as not to waste traffic on further downloading
now I can only re-create an instance of the class and use the new. and the old in this time spends resources... thread.stop () not supported in dalvik/art and is "not safe"
how I can interrupt the execution of prepare() ?
for example, when using http streams and a bad Internet channel, the prepare function takes a long time and I want to cancel it now so as not to waste traffic on further downloading
now I can only re-create an instance of the class and use the new. and the old in this time spends resources... thread.stop () not supported in dalvik/art and is "not safe"