You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
webbrowser.open() doesn't work on Android with bootstrap=sdl2 #846
webbrowser.open() doesn't work on Android with bootstrap=sdl2, but work with pygame.
No error, no crash, just nothing happens. Is there any solution to fix this issue?
I believe you also need to do an "import android" prior to calling webbrowser.open() (unless something else is automatically importing), as the android module registers the AndroidBrowser with the webbrowser module.
Activity
mrhdias commentedon Jul 22, 2016
To fix this error, I add the android module to the requirements in buildozer.spec.
WillDHB commentedon Jul 27, 2016
I believe you also need to do an "import android" prior to calling webbrowser.open() (unless something else is automatically importing), as the android module registers the AndroidBrowser with the webbrowser module.
inclement commentedon Jul 27, 2016
For reference, the specific code you need is as below (you can use this instead of the android module if you like):
I'd like to add this to the doc somehow, but am not sure where to put it.
inclement commentedon Jul 27, 2016
I've added some brief documentation for this, and we're discussing how to make it easily/automatically available by default.
mrhdias commentedon Oct 11, 2016
Thanks for the clues, but your solution does not work because it is not complete.
Can you fix the code with this?
http://python-for-android.readthedocs.io/en/latest/apis/