Android API to trigger an intent with extras?
#1
Hi, I'd like to use this function StartAndroidActivity(package,[intent,dataType,dataURI]) but also trigger an intent with extras - which currently is not possible?

Basically I want Tasker and Kodi to interact with each other.

Any help is highly appreciated!
Reply
#2
To be more precise, I want to connect to a server via OpenVPN from a .py script from Kodi.

This is what is working in Tasker:
Code:
Send Intent
Action:android.intent.action.MAIN
Cat:None
Extra:de.blinkt.openvpn.shortcutProfileName: PROFILENAME
Package:de.blinkt.openvpn
Target:Activity

and this is my .py script but it's only taking me to tasker which is really not what I want. I don't want tasker to open at all just do the task silently.

Code:

import xbmc xbmc.executebuiltin('StartAndroidActivity(de.blinkt.openvpn,android.intent.action.MAIN,de.blinkt.openvpn.shortcutProfileName: PROFILENAME)')]

Hope someone can help me.
Reply
#3
Could support for passing in Extras to StartAndroidActivity please be added?
Reply

Logout Mark Read Team Forum Stats Members Help
API to trigger an intent with extras?0
This forum uses Lukasz Tkacz MyBB addons.