[Nexus Player] Expose Leanback Launcher Intent
#1
Currently an issue with the Netflix application as it only specifies the LEANBACK_LAUNCHER category in its main action intent. It cannot be launched using StartAndroidActivity().

Below is a possible fix?

CXBMCApp::GetApplications()
Code:
std::vector<androidPackage> CXBMCApp::GetApplications()
{
CSingleLock lock(m_applicationsMutex);
if (m_applications.empty())
{
CJNIList<CJNIApplicationInfo> packageList = GetPackageManager().getInstalledApplications(CJNIPackageManager::GET_ACTIVITIES);
int numPackages = packageList.size();
for (int i = 0; i < numPackages; i++)
{
androidPackage newPackage;
newPackage.packageName = packageList.get(i).packageName;
newPackage.packageLabel = GetPackageManager().getApplicationLabel(packageList.get(i)).toString();
CJNIIntent intent = GetPackageManager().getLaunchIntentForPackage(newPackage.packageName);
-if (!intent || !intent.hasCategory("android.intent.category.LAUNCHER"))
+if (!intent || (!intent.hasCategory("android.intent.category.LAUNCHER") && !intent.hasCategory("android.intent.category.LEANBACK_LAUNCHER")))
continue;
m_applications.push_back(newPackage);
}
}
return m_applications;
}
Reply
#2
@Koying
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
https://github.com/xbmc/xbmc/pull/5899
Reply
#4
BTW, has an European succeeded in having the built-in Netflix working on Nexus Player or ADT-1?
It always give me a network error of some sort.
Reply
#5
(2014-12-06, 21:49)Koying Wrote: BTW, has an European succeeded in having the built-in Netflix working on Nexus Player or ADT-1?
It always give me a network error of some sort.
Netflix works fine here (ADT-1)
I do wonder why Kodi is the last one on the launcher list.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#6
Test builds:
- arm: http://mirrors.xbmc.org/test-builds/andr...bi-v7a.apk
- x86: http://mirrors.xbmc.org/test-builds/andr...ck-x86.apk
Reply
#7
This doesn't appear to be working any more, is it just me? Running kodi 16 beta 2

Edit : it does work but it doesn't get the intents for the Nvidia shield tv options like gamestream, shieldgames, geforce now,
Reply

Logout Mark Read Team Forum Stats Members Help
[Nexus Player] Expose Leanback Launcher Intent0