在SGS2清除剪贴板(API 10) [英] Clear Clipboard on SGS2 (api 10)
本文介绍了在SGS2清除剪贴板(API 10)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是三星Galaxy S2和尝试了以下内容:
I'm using a Samsung Galaxy S2 and tried the following:
import android.text.ClipboardManager;
ClipboardManager clipboard = (ClipboardManager)context.getSystemService(Context.CLIPBOARD_SERVICE);
clipboard.setText(null);
和
clipboard.setText("");
它没有工作。想法?
It didn't work. Ideas?
推荐答案
他们与三星Galaxy的错误。它不接受剪贴板设置为空值。你可以尝试将其设置为一个空格来代替。
Their is a bug with the Samsung Galaxy. It doesn't accept setting the clipboard to a blank value. You could try setting it to a space instead.
clipboard.setText(" ");
有关更多信息,请检查这
For further information check this
这篇关于在SGS2清除剪贴板(API 10)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文