Code example for ClipboardManager

Methods: setText

0
			startActivity(i);
			break; 
		 
		case QuickAction.COPY:
			ClipboardManager cm = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
			cm.setText(ITEMS[position][1]);
			Toast.makeText(this, "URL copied to clipboard", Toast.LENGTH_SHORT).show();
			break; 
		} 
	} 
	 
	// PRIVATE ==================================================================================== 
	 
	/** 
	 * Create a global quick action setup. 
	 */ 
	private void setupQuickAction() { 
		mQuickActionSetup = new HiddenQuickActionSetup(this);
		mQuickActionSetup.setOnQuickActionListener(this);
		 
		// a nice cubic ease animation