遇到ANDROID “call to opengl es api with no current context”错误

延迟线程执行

Timer timer=new Timer();//实例化Timer类
timer.schedule(new TimerTask(){
public void run(){
buyed(true);
this.cancel();}},500);

原文地址:https://www.cnblogs.com/caimuqing/p/5967561.html