BTAndroidWebViewSelection icon indicating copy to clipboard operation
BTAndroidWebViewSelection copied to clipboard

I dont know how to use BTAndroidWebView i tried BTWebView bt=new BTWebView(this);

Open shaik7abdul7khallik opened this issue 9 years ago • 4 comments

i tried

BTWebView web=new BTWebView(this);


web.evaluateJavascript("javascript:android.selection.getRange();", new ValueCallback<String>() { @Override public void onReceiveValue(String value) { Log.e("text",value); } });

cant able to select the test

E/text﹕ null W/art﹕ Suspending all threads took: 36.414ms p W/cr.BindingManager﹕ Cannot call determinedVisibility() - never saw a connection for the pid: 7138 I/BTWebView﹕ scale 2.0 I/chromium﹕ [INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'startTouch' of undefined", source: (1) W/cr.BindingManager﹕ Cannot call determinedVisibility() - never saw a connection for the pid: 7138 I/BTWebView﹕ scale 2.0 p determinedVisibility() - never saw a connection for the pid: 7138 /chromium﹕ [INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'startTouch' of undefined", source: (1) I/chromium﹕ [INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'longTouch' of undefined", source: (1) I/chromium﹕ [INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'apdAdmin' of null", source: (1) I/chromium﹕ [INFO:CONSOLE(12)] "Uncaught TypeError: $(...).sidr is not a function", source: http://m.hindustantimes.com/res/mobile/js/customStories.js (12) I/chromium﹕ [INFO:CONSOLE(570)] "Uncaught TypeError: $(...).easyResponsiveTabs is not a function", source: http://m.hindustantimes.com/india/pak-appeals-to-us-to-play-role-in-resolving-kashmir-issue/story-JC4RUWw7maxRpXJqnidg1J.html (570)

shaik7abdul7khallik avatar Oct 24 '15 08:10 shaik7abdul7khallik

Did you reference the necessary javascript files in your html files?

btate avatar Oct 26 '15 14:10 btate

i am loading some predefined web urls... i am not creating any html

shaik7abdul7khallik avatar Oct 26 '15 17:10 shaik7abdul7khallik

There are some javascript files in the example project that you need to use in order for this to work. The web view has a javascript interface that communicates with the web page via the javascript files.

btate avatar Oct 26 '15 18:10 btate

but for example if i use ''webView.loadUrl("http://www.google.com");"

How can i use your JavaScript files along with such url html pages. Is there a way to append to html's that I load from net?

shaik7abdul7khallik avatar Oct 26 '15 19:10 shaik7abdul7khallik