Code example for ClipboardManager

Methods: removePrimaryClipChangedListener

0
    @Override 
    public void onDestroy() { 
        super.onDestroy(); 
 
        if (mClipboardManager != null) {
            mClipboardManager.removePrimaryClipChangedListener(
                    mOnPrimaryClipChangedListener);
        } 
    } 
 
    @Override 
    public IBinder onBind(Intent intent) {
        return null; 
    } 
 
    private boolean isExternalStorageWritable() { 
        String state = Environment.getExternalStorageState();
        if (Environment.MEDIA_MOUNTED.equals(state)) {
            return true; 
        } 
        return false;