Skip to content Skip to sidebar Skip to footer

QPython3 Problems With Javascript In HTML GUI

QPython3, Android 6.0; I guess JS cann't instance var droid = new Android(); Any hints to solve the problem? Python Code (the same in both cases!): import android droid=android.An

Solution 1:

Use bottle() instead of JavaScript. It's already integrated in QPython3 and provides solutions for pretty the same tasks. Find a tutorial for bottle() at https://bottlepy.org/docs/dev/bottle-docs.pdf

Regards Gustav


Solution 2:

I encountered same problem. As far as I found, at least in recent version you're required to add an Android interface when using webview by calling JavascriptAddInterface, and from the SL4A sources seems like it doesn't. Too bad...


Post a Comment for "QPython3 Problems With Javascript In HTML GUI"