nexus-player

getLaunchIntentForPackage is null for some apps

僤鯓⒐⒋嵵緔 提交于 2019-11-27 03:11:31
问题 I'm building a service that sends a list of installed apps from an Android TV or a Fire TV to a mobile phone. The phone then sends back the package name of the app it wants to launch and the service launches it. This is the code that creates the list public List<InstalledApp> GetInstalledApps(boolean isAndroid) { PackageManager pm = getPackageManager(); List<ApplicationInfo> allPackages = pm.getInstalledApplications(PackageManager.GET_META_DATA); List<InstalledApp> userPackages = new

UnsatisfiedLinkError: dalvik.system.PathClassLoader

隐身守侯 提交于 2019-11-26 21:50:08
问题 I'm making an application for AndroidTV and get the error java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/mytv.mytv-2/base.apk" on a NexusPlayer with Android 6.0.1. Curious that it works on a smart TV with Android 5.1.1. The whole text error is: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/mytv.mytv-2/base.apk"],nativeLibraryDirectories=[/data/app/mytv.mytv-2/lib/x86, /data/app/mytv.mytv-2/base