How do you load Javascript into android webview? -
html code:
<!doctype html> <html> <head> <script src="resource://jquery.min.js"></script> </head> <body> </body> </html>
i want intercept protocol(resource://) , manual load javascript webview. can store third party libs in android assets.
i tried override onloadresource of webviewclient , use webview.loaddata(data, mimetype, encoding); didn't work because app went endless loop.
found answer, , works perfectly! have searched question many times via google , stackoverflow haven't got right answer. , roommate made happen first trying.
Comments
Post a Comment