首页 > 移动平台 > 详细

(android)Can't Create handler inside thread that has not called Looper.prepare()

时间:2016-05-17 11:47:38      阅读:242      评论:0      收藏:0      [点我收藏+]

接android游戏sdk中,经常会遇到Looper报错,此时需要在主线程中调用sdk函数。

将sdk的函数放到UI线程中执行。

如:

  activity.runOnUiThread(new Runnable() {

   @Override

   public void run() {

   

   }

   });


本文出自 “Quick” 博客,请务必保留此出处http://quick007.blog.51cto.com/7454007/1774189

(android)Can't Create handler inside thread that has not called Looper.prepare()

原文:http://quick007.blog.51cto.com/7454007/1774189

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!