码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-07-16 13:50:37      阅读:396      评论:0      收藏:0      [点我收藏+]

标签:android   clipboardmanager   剪切板   

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

	    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()

标签:android   clipboardmanager   剪切板   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!