How to start android app chrome
#1
Hello,

I installed chrome apk (google app). It is working perfectly. I have kodi Jarvis 16.1. I would like to develop my own addon. Inside this addon I would like to start chrome.
For windows version it is not a problem. I just use: webbrowser.open_new(url) and then it opens.
I have android (COOD-E box). I tried the same but it did not started.
I found somewhere in this forum the following:

app = 'com.android.chrome'
intent = 'android.intent.action.VIEW'
dataType = ''
dataURI = 'http://bbc.co.uk'

cmd = 'StartAndroidActivity("%s", "%s", "%s", "%s")' % (app, intent, dataType, dataURI)

import xbmc
xbmc.executebuiltin(cmd)
StartAndroidActivity(com.android.chrome)

This is not working either.

Can anybody help?

Thanks in advance and a happy new year....
Reply
#2
Thread moved to add-on development
|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
(2017-01-05, 13:29)sinanozgur Wrote: Hello,

I installed chrome apk (google app). It is working perfectly. I have kodi Jarvis 16.1. I would like to develop my own addon. Inside this addon I would like to start chrome.
For windows version it is not a problem. I just use: webbrowser.open_new(url) and then it opens.
I have android (COOD-E box). I tried the same but it did not started.
I found somewhere in this forum the following:

app = 'com.android.chrome'
intent = 'android.intent.action.VIEW'
dataType = ''
dataURI = 'http://bbc.co.uk'

cmd = 'StartAndroidActivity("%s", "%s", "%s", "%s")' % (app, intent, dataType, dataURI)

import xbmc
xbmc.executebuiltin(cmd)
StartAndroidActivity(com.android.chrome)

This is not working either.

Can anybody help?

Thanks in advance and a happy new year....

The Crome browser does not use intents. Change intent to '' and it should work.
Reply

Logout Mark Read Team Forum Stats Members Help
How to start android app chrome0