I have custom web view which extends to Webview class, in that class I have implemented OnTouchListener, OnLongClickListener. However on long pressing text in webview its not calling onLongClick() method in tablet with OS version 4.1.2 & it does call method onLongClick() for OS 3.2. Please help me . I am using sample code from the BTAndroidWebViewSelection project.
Asked
Active
Viewed 137 times
4

Jeromy French
- 11,812
- 19
- 76
- 129

sachin003
- 8,983
- 4
- 21
- 23
-
1check this http://stackoverflow.com/questions/4659134/onlongclicklistener-does-not-work-on-webview – amrinder007 Jun 05 '13 at 10:07
-
@amrinder007 Thanks man, your given link have solved my problem, now I'm able to clone onLongClick(), however I have one problem, on long press I'm showing my custom pop-up window & it comes but it also show the default text selection option at the place of action bar, how to overcome on this so that it will show only my custom pop up otions. Thanks. – sachin003 Jun 05 '13 at 10:39
-
But why onLongClick() method stops working for android os version 4.1 ? Anybody have tried this interface http://developer.android.com/reference/android/view/View.OnLongClickListener.html on OS 4.1. – sachin003 Jun 06 '13 at 06:58