首页 > 其他 > 详细

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

时间:2014-07-16 13:50:21      阅读:370      评论: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(),布布扣,bubuko.com

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

原文:http://blog.csdn.net/only2xlr/article/details/37875941

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