Select particular word while copying
<p>In this sample app I'm trying to copy the text from the edittext it is working fine  ,
Now the thing is that I want to copy a particular word from the edittext how to achieve that</p>

<p>Thanks in advance</p>

<p>My sample app </p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mEditText = (EditText) findViewById(R.id.editor);
        Button mButton = (Button) findViewById(R.id.copybutton);

        mClipboardManager = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);

        mButton.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                mText = mEditText.getText().toString();
                if (mText != null) {

                    mClipData = ClipData.newPlainText("sample text", mText);
                    mClipboardManager.setPrimaryClip(mClipData);

                }

                final ClipData.Item item = mClipboardManager.getPrimaryClip()
                        .getItemAt(0);
                Toast.makeText(getApplicationContext(), " " + item.getText(),
                        Toast.LENGTH_LONG).show();
            }
        });
    }
</code></pre>
