google-tv

How to track mouse movement on Google TV

心已入冬 提交于 2019-12-10 23:42:23
问题 I use a Sony Google TV. If I click on the trackpad, it'll fire a onTouchEvent. But if I only slide on the touchpad (ie: moving the arrow), i dont see any onTouchEvent, neither onTrackBall event. Any hints about the way to track the touchpad/mouse movement? 回答1: You need to use onGenericMotionEvent. You can also add an OnGenericMotionEventListener . 来源: https://stackoverflow.com/questions/8144691/how-to-track-mouse-movement-on-google-tv

Detect Google TV without using user agent string

孤人 提交于 2019-12-10 18:33:54
问题 We have a client that wants their content on Google TV (via the Chrome Browser), but is legally restricted from allowing it on the "regular web". So we want to detect Google TV Browser via Javascript, and if it is not, disallow playing the content. The first thought was to check the user agent string, but apparently they don't like that because it would be too easy for a user to change their user agent string on their web browser so it pretends to be the Google TV browser. Is there something

Android Peer-to-Peer technolog

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 11:56:08
问题 Now that we've got a smartphone, tablet, GoogleTV, connected watches and Google classes soon, the need for Android Peer-to-Peer technology is rising. What is your opinion on connecting devices? Do I need to focus on framewworks like MOVL and AllJoyn, or write my own custom framework? 回答1: It is public knowledge that Google/YouTube is working on using the DIAL protocol for network device discovery and for launching apps on networked devices. My own testing shows that there is a DIAL server on

Google Tv Emulator AVD System Image

有些话、适合烂在心里 提交于 2019-12-09 06:38:13
问题 Hi i am trying to set up google tv emulator in my windows machine.I am able to install googleTv Adon avilable in api level 13 But when i am trying to create AVD it throws a errormessage Please install intelx86. But X86 System image is not avilable in api 13. Can anyone help me please. 回答1: The solution is to create avd with a command line. android create avd -n GoogleTV -t 11 Where 11 is the api id. In your system this will be different then mine so first issue a comamnd android list target

Google TV VideoView playing YouTube rtsp videos

穿精又带淫゛_ 提交于 2019-12-08 09:56:47
问题 I am accessing a video link via the YouTube API thusly: JSONObject(videoString).getJSONObject("entry") .getJSONObject("media$group").getJSONArray("media$content") .getJSONObject(0).getString("url"); Which gives me a link to a video such as: rtsp://v7.cache5.c.youtube.com/CiILENy73wIaGQlXg0iXvlQ9SBMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp I then try to play the video with: mVideoView.setVideoURI(result); final MediaController mediaController = new MediaController(mActivity); mVideoView

onListItemClick and onItemLongClick Google TV

蹲街弑〆低调 提交于 2019-12-08 09:52:28
问题 Both the methods are being called when I do a long click on Google TV, but only the appropriate one is called with the same code on a tablet. Any ideas how to handle onItemLongClick without triggering onListItemClick on GoogleTV? @Override public void onListItemClick(ListView l, View v, int position, long id) { Log.i(DEBUG_TAG, "onListItemClick"); WeatherData.getSingleton(getActivity().getApplication()).setCurrentLocationCode(WeatherData.getSingleton(getActivity().getApplication())

How to connect Google TV remote app with Google TV emulator

喜夏-厌秋 提交于 2019-12-08 05:29:06
问题 As the title suggests, I have been unable to connect (and pair) the google tv remote app with a Google TV emulator running on Ubuntu. I understand that the emulator runs on its own sub-network and therefore has to use redirections in order to connect with anything outside its network. I have tried the following: 1) Remote control app running on device, 2) Remote control app running on android emulator on same machine as the google tv emulator (For this I had to use a modified version of the

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

廉价感情. 提交于 2019-12-06 08:57:12
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-permission android:name="android.permission.WAKE_LOCK" /> <uses-library android:name="com.adobe

How android remote control works with Google TV

眉间皱痕 提交于 2019-12-06 07:14:11
问题 Any ideas on how Google TV remote app on android platform works. I just tried it today. Paired it over wi-fi and it just started to work. What's the concept behind it? It does not seem to be using Bluetooth . So then how does it work without installing any component on the TV? 回答1: I know this is an old question, but I figured I would add some additional details since the current answers are not very helpful. It works using IP, typically via WiFi, but not technically required. Below are some

How can you access external memory on Google TV

久未见 提交于 2019-12-06 01:56:22
问题 I'm developing using a Sony Internet TV as a development device, which has 4 USB ports. All or no ports can be used with external hard drives. How can I select and access external memory vs internal memory on the device. I'm able to access the SD card, or at least what the TV labels as the SD card using the following: Environment.getExternalStorageDirectory(); But I can't seem to figure out how to find external USB devices. I've attempted to go down the path of the UsbManager class, but it