Kodi Community Forum

Full Version: unable to open default web browser from addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I am building an addon that needs to be able to open a web page. I was able to get it to work on linux but was unable to get it to work on android devices.


I keep getting this error
2024-12-27 11:30:22.675 T:22870 error <general>: StartActivity: ExceptionOccurred launching 'com.android.browser'

Code:
xbmc.executebuiltin("StartAndroidActivity('com.android.browser','android.intent.action.VIEW','{}')".format(url))
Thread moved to addon development support
the documentation for startandroidactivity is lacking, you're missing a comma

StartAndroidActivity('com.android.browser','android.intent.action.VIEW',,'{}')

use this as an example https://github.com/matthuisman/slyguy.ad...gin.py#L29
Thanks a lot its working!!!!
right on, you're welcome
Thread marked solved.