2022-04-15, 15:13
--edit: New arguments are added in Kodi Nexus v20.
Currently the StartAndroidActivity only supports the following parameters:
- intent (optional)
- datatype (optional)
- dataURI (optional)
Can we extend it to support all arguments as available with the 'am start' command?
As described in the am command helptext.
am [start|instrument]
am start [-a <action>] [-d ]
[-t <mime_type>] [-c <category> [-c <category>] ...]
[-e <extra_key> <extra_value>
[-e <extra_key> <extra_value> ...]
[-n <component>] [-D] [<uri>]
am instrument [-e <arg_name> <arg_value>] [-p <prof_file>] [-w] <component>
Mainly the -e parameter, which can be a array of args as the last parameter in the StartAndroidActivity call.
The following line in the libdroidjni project already suggest support for the -e parameters through 'putExtra'
CJNIIntent CJNIIntent::putExtra(const std:tring &name, const std:tring &value)
The combination of package/activity (either exactly like that or by another parameter) should also be supported.
Example: com.retroarch/com.retroarch.browser.retroactivity.RetroActivityFuture
Currently the StartAndroidActivity only supports the following parameters:
- intent (optional)
- datatype (optional)
- dataURI (optional)
Can we extend it to support all arguments as available with the 'am start' command?
As described in the am command helptext.
am [start|instrument]
am start [-a <action>] [-d ]
[-t <mime_type>] [-c <category> [-c <category>] ...]
[-e <extra_key> <extra_value>
[-e <extra_key> <extra_value> ...]
[-n <component>] [-D] [<uri>]
am instrument [-e <arg_name> <arg_value>] [-p <prof_file>] [-w] <component>
Mainly the -e parameter, which can be a array of args as the last parameter in the StartAndroidActivity call.
The following line in the libdroidjni project already suggest support for the -e parameters through 'putExtra'
CJNIIntent CJNIIntent::putExtra(const std:tring &name, const std:tring &value)
The combination of package/activity (either exactly like that or by another parameter) should also be supported.
Example: com.retroarch/com.retroarch.browser.retroactivity.RetroActivityFuture