Looper.getMainLooper() //用于获取主线程的Looper对象。
new Handler(AppActivity.instance.getMainLooper()).post(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
//在这里调用第三方SDK就没有问题了
}
});
cocos 接第三方SDK Can't create handler inside thread that has not called Looper.prepare()解决办法
最新推荐文章于 2019-09-03 10:46:27 发布