webbrowser.open() doesn't work on Android with bootstrap=sdl2
See original GitHub issuewebbrowser.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?
Android Version: 6.0.1
import webbrowser
webbrowser.open('http:/www.kivy.org/')
From buildozer logs
# Run 'python -m pythonforandroid.toolchain
--color=always
--storage-dir=/home/hdias/Work/mobile_app/.buildozer/android/platform/build create
--dist_name=mobile_app
--bootstrap=sdl2
--requirements=pycrypto,plyer==master,kivy==master --arch armeabi-v7a --copy-libs'
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
python - webbrowser.open() doesn't work on Android
I'm using QPython and Kivy Launcher to run my Python code on Android. QPython Log of webbrowser. get() or webbrowser.
Read more >Kivy app working on PC but not on Android with Buildozer ...
Test this by creating a HelloWorld app, add two things: import webrowser and in on_start() put webbrowser.open(). Does this crash in the same...
Read more >python-for-android Documentation
One useful facility of this module is to make webbrowser.open() work on Android. You can replicate this effect.
Read more >Platform::Sdl2Application class | Magnum C++ docs
The bootstrap application assumes that SDL2 and ANGLE is built as DLL and both Corrade and Magnum are built statically. Assuming the native...
Read more >Build an Android application with Kivy Python framework
Getting started with Kivy. First, you'll need a new directory for your app. Make sure you have Python installed on your machine and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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/
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.