BTAndroidWebViewSelection icon indicating copy to clipboard operation
BTAndroidWebViewSelection copied to clipboard

Selection not working on Samsung Galaxy Tab2

Open swatisachdeva opened this issue 11 years ago • 5 comments

Hi, First of all I really appreciate the hard work as this is a very nice tool which we have been using in our app. But the selection seems not to work on Samsung Tab since the default behaviour on the samsung devices is to show their own text selection tool which has copy search and other menu items and hence I am unable to use the custom text selection on the device. Any help or advice would be really appreciated as any workaround is not working too well for me.

swatisachdeva avatar Feb 05 '14 10:02 swatisachdeva

Are you using the latest version with the latest javascript, etc? I have a galaxy tab 2 in front of me and it works fine.

btate avatar Feb 05 '14 14:02 btate

Yes I am using the latest javascript and the latest version of code. But on samsung tab2, it is just not working.

swatisachdeva avatar Feb 05 '14 16:02 swatisachdeva

The onLongClick method for a webview in a samsung device is never called, i dun understand how things are working at your end. Can you just check if the function onLongClick is called automatically after onTouch in Samsung Tab? That would be of a great help. Thanks a lot

swatisachdeva avatar Feb 06 '14 04:02 swatisachdeva

It gets called on my end. What version of android are you running? I'm on 4.1

btate avatar Feb 06 '14 15:02 btate

I am using Android version 4.1.2 and I had to call the long click method explicitly if the touch is for more then few seconds but that effects the selection part on other devices like Nexus then, I am still struggling to find a better solution.

swatisachdeva avatar Feb 07 '14 03:02 swatisachdeva