Solved unable to open default web browser from addon
#1
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))
Reply
#2
Thread moved to addon development support
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#3
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
Reply
#4
Thanks a lot its working!!!!
Reply
#5
right on, you're welcome
Reply
#6
Thread marked solved.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply

Logout Mark Read Team Forum Stats Members Help
unable to open default web browser from addon0
This forum uses Lukasz Tkacz MyBB addons.