FAQ Database Discussion Community


Android Facebook SDK 3.23.0 - FB Login on AndroidTV

android,facebook,facebook-android-sdk,android-tv
Does anyone have any experience using the Facebook SDK to perform Facebook login on AndroidTV? Since it's most often the case that an AndroidTV user won't have the actual Facebook app installed on the AndroidTV device, the Facebook SDK will open a WebView to allow the user to enter his...

Returning MatrixCursor in ContentProvider query method makes Android TV global search crash

android,tv,android-tv
I'm trying to make my Android TV app searchable, and I'm testing the global search. I've created a ContentProvider and it's query method is called when I search something. The problem comes when I populate a cursor and I return it, in that moment the global search crashes and the...

Google Play: Declaring an App is Only for TVs

google-play,publishing,android-tv,nexus-player
I'm trying to publish an Android TV app, but the developer console is saying: "You need to add at least 2 non-Android TV screenshots." But this apk is only for Android TV, since there's another apk specific for tablets and phones. How can I target only Android TV? Also, I...

Android TV app runs on mobile

java,android,android-tv
I want to create app that targets only Android TV. I use this in my manifest <uses-feature android:name="android.software.leanback" android:required="true" /> considering on developers.android it says: If you set the required attribute value to true, your app will run only on devices that use the Leanback UI. But i can run...

Unable to connect Android TV ADT-1 to my laptop

android,android-tv
I am using a Windows 7 enterprise edition. I am trying to make some application for Android TV(ADT-1). The issue is my laptop is not able to detect the device using USB Port. My laptop is able to detect other device like iPhone and all. I have checked "devices an...

Android Tv: get list of channels

android,android-tv
I've installed the androidtv-sample-inputs so I can fake some Tv inputs and have some channels and I wanted to get information about that channels, however, when I query to get that information I get an empty cursors. What i've tried so far is: TvInputManager tv = (TvInputManager)getApplicationContext().getSystemService(Context.TV_INPUT_SERVICE); List<TvInputInfo> list =...

getLaunchIntentForPackage is null for some apps

android,android-tv,amazon-fire-tv,nexus-player
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...

Making AndroidTV app workable on FireTV

android,amazon,android-tv,amazon-fire-tv
I have an android tv app using a leanback library that I want to publish to amazon tv store also. I know that we can use leanback library for fire tv as per this link using a standard LAUNCHER. However I am not sure about a few things: Recommendations Android...

Focus is Getting Lost on adapter.notifyArrayItemRangeChanged

android,android-activity,android-view,android-tv
In my Android TV app, the action button in the ActionsRow loses focus on adapter.notifyArrayItemRangeChanged(0, 1); call. I am using: View focusedView = getActivity().getCurrentFocus(); to get the focused view, but cannot set the focus back on after notifyArrayItemRangeChanged. The button with the focus before notifyArrayItemRangeChanged loses focus, and I can't...

Fetch list of all apps on Android device (esp. Android TV)

android,android-package-managers,android-tv
I'm trying to fetch a list of all launchable apps on an Android TV (Nexus Player) running 5.1.1. private static Set<ResolveInfo> getInstalledAppsFrom(PackageManager packageManager) { Set<ResolveInfo> activities = new HashSet<>(); activities.addAll(launcherActivitiesIn(packageManager)); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { activities.addAll(leanbackActivitiesIn(packageManager)); } return activities; } private static List<ResolveInfo> launcherActivitiesIn(PackageManager packageManager) {...

Admob for Android TV app

admob,android-tv
Developing an application for Android TV, I have a question on the use of ads. The Android TV layout guide states that: Advertising on Android TV must always be full-screen. Ads must not appear alongside or over content. The user must be able to dismiss an advertisement with the D-pad...

Android TV ADT-1 adb connect port changed?

android,debugging,adb,android-tv
Hi as of yesterday I was able to build and push apk files to the ADT-1 Android TV device via WiFi. Then the device had an update and now i'm no longer able to connect to the device. I think the port number adb is allowed to connect on has...

When using RowsFragment, does ObjectAdapter.setPresenterSelector do anything?

android,android-5.0-lollipop,android-support-library,tv,android-tv
I'm using RowsFragment with an ObjectAdapter and I spotted the method ObjectAdapter.setPresenterSelector. However, I've already set my PresenterSelector using RowsFragment.setPresenterSelector, so I'm not sure what ObjectAdapter.setPresenterSelector does. Does it do anything?

How to make video resume properly after microphone search used on Amazon Fire TV?

android,android-tv,amazon-fire-tv
I am creating a video player app for Amazon Fire TV using the Google Leanback code (I know it wasn't intended for Fire TV, but I have done what's necessary to make it work - except for this). I have made it so that a video resumes where you left...

How to Enable USB Debugging on Nexus Player? (Android TV)

android,adb,google-cast,android-tv,nexus-player
I am trying to debug my app on the Nexus Player hardware. I enabled the developer mode, turned USB Debugging on, and connected the cable. However, I don't see any message like the one below as stated here: https://developers.google.com/cast/docs/android_tv#adb-usb In the Allow USB debugging? dialog, select Always allow from this...

Android TV embedded youtube 1080p

android-youtube-api,android-tv
I want to display some YouTube videos on my Android TV application, I was trying to port something I already have working on a phone, but there I use the YouTube Android API player, that doesn't seem to work on Android TV. I found this https://code.google.com/p/gdata-issues/issues/detail?id=6998 so it looks like...

Getting Class is not a View Error When Using a Custom Class in Layout - Android TV

android,android-layout,android-view,android-tv
I am getting the following error: android.view.InflateException: Binary XML file line #8: Class is not a View com.abcxyzradio.ActionsRow Layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/wholeView" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <com.abcxyzradio.ActionsRow android:id="@+id/actions_row_actions" android:layout_width="match_parent"...