Searched refs:mClipboard (Results 1 – 1 of 1) sorted by relevance
38 ClipboardManager mClipboard; field in ClipboardSample60 mClipboard = (ClipboardManager)getSystemService(CLIPBOARD_SERVICE); in onCreate()98 mClipboard.addPrimaryClipChangedListener(mPrimaryChangeListener); in onCreate()105 mClipboard.removePrimaryClipChangedListener(mPrimaryChangeListener); in onDestroy()109 mClipboard.setPrimaryClip(ClipData.newPlainText("Styled Text", mStyledText)); in pasteStyledText()113 mClipboard.setPrimaryClip(ClipData.newPlainText("Styled Text", mPlainText)); in pastePlainText()117 mClipboard.setPrimaryClip(ClipData.newHtmlText("HTML Text", mHtmlPlainText, mHtmlText)); in pasteHtmlText()122 mClipboard.setPrimaryClip(ClipData.newIntent("VIEW intent", intent)); in pasteIntent()126 mClipboard.setPrimaryClip(ClipData.newRawUri("URI", Uri.parse("http://www.android.com/"))); in pasteUri()130 ClipData clip = mClipboard.getPrimaryClip(); in updateClipData()