qpython icon indicating copy to clipboard operation
qpython copied to clipboard

webview simple question

Open cjaramilu opened this issue 6 years ago • 1 comments

I have a python2 script with these lines: import androidhelper droid = androidhelper.Android() droid.webViewShow ( 'file:///sdcard/qpython/html/foo.html')

and the file 'foo.html' has a script that has this code: try { droid = new Android() ; alert ( "droid is good"); } catch(err) { alert ("error " + err.message) ; }

the file 'foo.html' shows ok in the browser but I get the alert error that Android is not an object

cjaramilu avatar May 19 '19 14:05 cjaramilu

Can you try

replace droid = new Android() ; with droid = new AndroidHelper() ?

riverfor avatar Jun 19 '19 11:06 riverfor