qpython
qpython copied to clipboard
webview simple question
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
Can you try
replace droid = new Android() ; with droid = new AndroidHelper() ?