google-tv

Get the count of the latest statusbar notifications in Android

♀尐吖头ヾ 提交于 2019-12-24 06:40:45
问题 I have a Google TV and find the Home app can display the count of the latest statusbar notifications. Does anyone know how to implements this function? 回答1: You cannot get the count of notifications sent from other apps in Android. Only system apps can do that. You could keep track of the number of notifications that your app is sending but I don't think that is what you are looking for. 来源: https://stackoverflow.com/questions/10996849/get-the-count-of-the-latest-statusbar-notifications-in

Volume Channels

折月煮酒 提交于 2019-12-24 03:03:42
问题 Such Problem: I have video file recorded with two sound channels. I tried to switch off left sound channel by this code: MediaPlayer mp; .... mp.setVolume(0.f, 1f); ... and on Tablet this work good (right volume channel sounds well). But then I tried it on googleTv which I connect to Samsung UE46ES6307U and this code did not work, sound swichs off. Maybe it is bounds to Dolby Digital Plus / Dolby Pulse audio? Can I somehow programmatically discover how sound channels device has, and what

Multiple apks, single listing of app for Google TV and Android Phone/Tablet on Play Store

那年仲夏 提交于 2019-12-22 17:45:36
问题 I have an Android phone/tablet apk which is currently in Play store and has these settings in its manifest file: package="com.company.xyz" android:versionCode="0803010008" android:versionName="01.00.08" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses

Android SDK 14 - Can't Create GTV device

大憨熊 提交于 2019-12-22 04:03:07
问题 I'm a Google TV developer, and today, shortly after the android sdk 14 was released, I updated everything, from the android sdk to the eclipse ADT. Since then, I can't create a Google TV virtual device. I came to the point where I completely deleted everything and tried to do a fresh install. Here is what happens: With a fresh download of the android sdk with only Android 3.1 and the Google TV add-on: $ android list targets Available Android targets: ---------- id: 1 or "android-12" Name:

Google TV emulator without chrome browser?

倖福魔咒の 提交于 2019-12-20 03:14:27
问题 Is it normal not to have the Google Chrome browser on a google TV emulator in a Linux machine with KVM enabled? When launching an Intent from my application that hits a web page, I get the error message "No activity found to handle intent {act=android.intent.action.VIEW, dat=http://...}" and I have tried several web addresses. The code from My Activity is this and it works fine in other android platforms: Intent myIntent= new Intent(Intent.ACTION_VIEW, Uri.parse( "http://www.test.com");

How to use D-pad navigate switch between listview's row and it's decendants (Google-TV support)

雨燕双飞 提交于 2019-12-18 13:20:01
问题 I have a listview which has an imageview inside each list item, when user click on that imageview, it will pop-up a menu. It works very well on a normal android device with a touch screen. But now I want to support google-tv, which app should be control by D-pad. When I use D-pad to navigate through listview, only the entire row can be focus, I can't get the imageview inside listview be focus. I try to add android:focusable="true" to imageview, but it cause the entire listview can't receive

Identify GoogleTv from Android app

时光毁灭记忆、已成空白 提交于 2019-12-18 04:45:17
问题 Is there a way for an Android app to tell in the Java code if it is running on GoogleTV vs tablets or phones? 回答1: The following link might help you: Google TV Android Developer's Guide To optimize your app for a Google TV, just add an additional layour for large screens. However, if you want to determine the device that is currently using the app at runtime, you could try the hasSystemFeature() method. With this you can test for certain hardware features that are unique to Google TV (e.g.

How do I get the OnClickListener working on a custom view with a RelativeLayout?

限于喜欢 提交于 2019-12-18 03:12:18
问题 Question Hello, i have built a custom view with a RelativeLayout to use it as custom image button. So far, selecting it works (PIC2) and even when I click it (using GoogleTV Remote), the view successfully changes it's state to PIC3 (thanks to android:duplicateParentState="true" ) But unfortunately the onClickListener does not fire (doesn't matter if I click the View with the Remote "OK" Button or I use the touchpad..) I really need the same behavior like a normal button. How to accomplish

How do I get the OnClickListener working on a custom view with a RelativeLayout?

回眸只為那壹抹淺笑 提交于 2019-12-18 03:12:09
问题 Question Hello, i have built a custom view with a RelativeLayout to use it as custom image button. So far, selecting it works (PIC2) and even when I click it (using GoogleTV Remote), the view successfully changes it's state to PIC3 (thanks to android:duplicateParentState="true" ) But unfortunately the onClickListener does not fire (doesn't matter if I click the View with the Remote "OK" Button or I use the touchpad..) I really need the same behavior like a normal button. How to accomplish

Android app cannot be updated on new version of Play Store due to configuration errors

让人想犯罪 __ 提交于 2019-12-13 07:20:52
问题 Apologies for the wall of text. My company uses a single listing for multiple apks on the play store as mentioned in this question. The package name used for both apks is com.company.xyz. Our GTV app's current version is 1203010007 and phone/tablet app's current version is 1714010016. We want to release an update (1714010017) to our Android phone app. I am able to upload the phone apk on the old version of the play store but when I try to submit the same on the new version of the play store,