Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable copy , paste and select toolbar , from a webview inside Android application

How can I disable copy, paste and select toolbar from a webview inside Android application?

I am making an application that actually "webview" a website that work on Javascripts and Jquery.

So I am wondering if I can disable the copy paste toolbar.

like image 795
Bahaa Odeh Avatar asked Aug 17 '12 12:08

Bahaa Odeh


1 Answers

Disables all touch events on a WebView

mWebView.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
    return true;
}
});
mWebView.setLongClickable(false);
like image 196
anjaly Avatar answered Oct 24 '22 10:10

anjaly