Code example for ClipboardManager

Methods: addPrimaryClipChangedListener

	private View.OnClickListener onClick_Enabled = new View.OnClickListener() {
		public void onClick(View v) { 
			ClipboardManager manager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE); 
			manager.addPrimaryClipChangedListener(new ClipboardManager.OnPrimaryClipChangedListener() { 
				public void onPrimaryClipChanged() { 
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present. 
		getMenuInflater().inflate(, menu);
		return true; 
Connect your IDE to all the code out there  Get Codota for Java