Code example for ClipboardManager

Methods: removePrimaryClipChangedListener

0
    } 
    @Override 
    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(){ 
    		super(); 
    		//hasChanged = false; 
    	} 
    	 
    	@Override