Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shaik7abdul7khallik opened this issue Oct 24, 2015 · 4 comments

Comments

@shaik7abdul7khallik
Copy link

i tried

BTWebView web=new BTWebView(this);


web.evaluateJavascript("javascript:android.selection.getRange();", new ValueCallback() {
@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)

@btate
Copy link
Owner

btate commented Oct 26, 2015

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

@shaik7abdul7khallik
Copy link
Author

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

@btate
Copy link
Owner

btate commented Oct 26, 2015

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.

@shaik7abdul7khallik
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants