Code example for ClipboardManager

Methods: removePrimaryClipChangedListener

    public void onDestroy() { 
        // The service is no longer used and is being destroyed 
    	ClipboardManager clipBoard = (ClipboardManager)getSystemService(CLIPBOARD_SERVICE);
        clipBoard.removePrimaryClipChangedListener ( this );
    	started = false;
    /* Application specific 
    private class ClipboardChangeActions extends AsyncTask<Void, Void, Void>{
    	private CharSequence text = "";
    	//boolean hasChanged; 
    	public ClipboardChangeActions(){ 
    		//hasChanged = false; 
Stop searching for code, let great code find you!  Add Codota to your java IDE