I am working on to avoid cut/copy/paste in smart phone (for tablet its fine). Its fine in port mode but coming in land mode EditText shows a Button Next. after selecting the text, next button converts into Edit Button which has copy,cut and paste option.
So is there any way to disable cut/copy after rotation when edit button appears.
i am following this link. How to disable copy/paste from/to EditText
Try using these two lines. It may help you:
I think you can use this:
http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptions
With the flag:
flagNoAccessoryAction
Used in conjunction with a custom action, this indicates that the action should not be available as an accessory button when the input method is full-screen. Note that by setting this flag, there can be cases where the action is simply never available to the user. Setting this generally means that you think showing text being edited is more important than the action you have supplied. Corresponds to IME_FLAG_NO_ACCESSORY_ACTION.
Try this ..
as we don't know what u tried so far..and what you actually doing in your code...beside that..here is a link ...similar to your question , i think this will help you out.. Disabling the fullscreen editing view for soft keyboard input in landscape?
I would insist you to disable the long click on the EditText as that
Edit
button appears when you long press on the selected text in the EditText.Also, you can clear the
ClipboardManager
, so that if you already have something that is already copied to ClipBoard will be cleared using,@Cobra - set
EditText.setEditable(false);
in your code, or you set this property in your xml as well. this property done well, but if any case this won't work ..setsetFocusable
also false.. this solution work for me..