On Mon, Nov 28, 2011 at 2:57 AM, Reddy <[email protected]> wrote:
> I have a EditText where i can enter some data. Here i should not
> select the entered data and copy it or i should not paste the data i
> copied from somewhere else.

That seems user-hostile.

> So for this i made android:longClickable as false. So on long press
> nothing will happen so that the user will not get the copy/paste
> option. But when the user selects the text and do the long press then
> copy/paste option is coming.
> Could some one knows how to handle this, please help.

I suspect that even if you come up with an answer, it will not work
across devices. Device manufacturers have had a tendency to roll their
own "context menu" for EditText, defeating developers' attempts to add
items into that context menu. My guess is that trying to block that
context menu will have similar results.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to