[英]Android AsynkTask in loop infinite
I'm trying to do a AsynkTask in loop, when finishes the onPostExecute I want to "restart" the same AsynkTask. 我正在尝试做一个AsynkTask循环,当完成onPostExecute时,我想“重新启动”相同的AsynkTask。
Any knows how to make this? 有谁知道该怎么做?
just call this new myAsynctask.execute();
只需调用此new myAsynctask.execute();
at the last line of the onPostExecute() 在onPostExecute()的最后一行
protected void onPostExecute(){
new myAsynctask.execute();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.