How to launch Android App with Parameter
#1
Hi,

I'd like to open some Android Apps with specified Activity.
For Example I'd like to open Tunein Radio in Leanback Mode.

The Activity for this is:
tunein.leanback.LeanBackActivity

In Kodi Wiki I just found this:
StartAndroidActivity(package,[intent,dataType,dataURI])

But what's the correct syntax? Because nothing I tried worked...

Can anyone give me a hint?

Thank you.
Reply
#2
I would say, it should be StartAndroidActivity(tunein.player, tunein.leanback.LeanBackActivity) or just StartAndroidActivity(tunein.leanback.LeanBackActivity).
Reply
#3
Did you ever found out of this?

I still can`t get an app to open in leanback mode from Kodi, when it open to leanback from standard launcher (android).

I have not set Kodi up as launcher.
Petter :-)
Many thanks for all the effort YOU all do! THANKS! :-)
nVidia Shield TV (2015), Samsung QE75Q70R and Yamaha RX-V767
Reply
#4
I have the same problem with Yle Areena app (Finnish equivalent for the BBC iPlayer). The app has a mobile layout and Leanback layout. If I launch it from Android TV main screen, it opens with the Leanback layout. If I launch it from Kodi, it opens with the mobile layout.

Here's a link to the app in Google Play, if anyone with more knowledge wants to try figuring it out: https://play.google.com/store/apps/detai...ebtv&hl=en
Kodi @ NVidia Shield Android TV, Asrock J3455-ITX (LibreELEC Server), Windows 10, and Nexus 7 (2013)
Reply
#5
When you add the app as an favorite inside. Does it use the same start "address" as it uses in the original launcher?

Or where does Kodi get the string from, like this one: StartAndroidActivity(“no.nrk.tv”)

Is there an way to check how the app is open in android?

I may be way off here, just comes with some questions. :-)
Petter :-)
Many thanks for all the effort YOU all do! THANKS! :-)
nVidia Shield TV (2015), Samsung QE75Q70R and Yamaha RX-V767
Reply
#6
I have got an hint of the NRK app, but that did not work either.

But here it is, in case anyone see something that can help :-)

StartAndroidActivity(“no.nrk.tv.view.androidtv.AndroidTvMainActivity”)
Petter :-)
Many thanks for all the effort YOU all do! THANKS! :-)
nVidia Shield TV (2015), Samsung QE75Q70R and Yamaha RX-V767
Reply
#7
Just an update on my issue with the Yle Areena app. The app was updated today and it now launches properly in leanback mode when started from Kodi. So if there are problems when launching Android apps from Kodi, try nagging to the developers of the app, it might help Smile
Kodi @ NVidia Shield Android TV, Asrock J3455-ITX (LibreELEC Server), Windows 10, and Nexus 7 (2013)
Reply
#8
That I will :-)
Petter :-)
Many thanks for all the effort YOU all do! THANKS! :-)
nVidia Shield TV (2015), Samsung QE75Q70R and Yamaha RX-V767
Reply

Logout Mark Read Team Forum Stats Members Help
How to launch Android App with Parameter0