Android StartAndroidActivity()
#1
Hey friends,

Does anyone know how to use StartAndroidActivity() and transfer this shell command:
Code:
adb shell am start -a android.intent.action.VIEW -d www.google.com'

to StartAndroidActivity(package,[intent,dataType,dataURI])?
Reply
#2
Taken from another post:
Code:
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)
Reply
#3
Yes that's what I am using now and it's working great!
Thanks!


Sent from my iPhone
Reply

Logout Mark Read Team Forum Stats Members Help
StartAndroidActivity()0