首页 > 其他 > 详细

使用ClipboardManager碰到Can't create handler inside thread that has not called Looper.prepare()

时间:2017-04-25 19:05:29      阅读:315      评论:0      收藏:0      [点我收藏+]

直接放上我的代码。希望能给碰到相同问题的朋友提供帮助

	    Runnable runnable = new Runnable() {
	        public void run() {
			   ClipboardManager clipboard =  (ClipboardManager)GameUtil.getIntance().getContext().getSystemService(Context.CLIPBOARD_SERVICE);	
	           clipboard.setText(content); 
	        }
		};
		GameUtil.getIntance().getGameActiviti().runOnUiThread(runnable);


使用ClipboardManager碰到Can't create handler inside thread that has not called Looper.prepare()

原文:http://www.cnblogs.com/jhcelue/p/6763730.html

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