Code example for ClipboardManager

Methods: addPrimaryClipChangedListener

0
                    mPageLink = m.group(); // Matched string
                    new RetrieveTitle().execute(mPageLink);
                } 
            } 
        }; 
        mClip.addPrimaryClipChangedListener(mClipListener);
        return START_STICKY;
    } 
     
    @Override 
    public void onCreate() { 
        Log.i(TAG, "OnCreate");
    } 
     
    @Override 
    public void onDestroy() { 
        stopSelf(mStartId);
        mClip.removePrimaryClipChangedListener(mClipListener);
        Log.i(TAG, "OnDestroy");
        super.onDestroy(); 
    }