Anyone have a reference to the keycodes for sony remote, I have play and stop working but need pause keycode, play pause seems to be referencing the same keycode but the buttons are seperate on the remote
Here are the media keycodes:
https://developers.google.com/tv/android/docs/gtv_controlguide#MediaKeys
The controls are mapped to similar Android keys. The corresponding key codes can be found here: https://developer.android.com/reference/android/view/KeyEvent
Please also note Google TV guidelines for building TV navigation.
If you need to know which keycode a specific key on your remote has I can recommend using KeyMapper which is free, available for Google TV and allows you to remap almost any hardware key to another function. It also shows you what keycode is triggered by a key.
Related
all:
We want to enable Google Assistant with custom actions via the button, not the voice input (keyword).
For example, usually, we enable Google Assistant with word "Hello, Google, show me the weather.". But within our production, we want to press one specific button, and then it could send the sentence above out to Google Assistant directly.
But we can't find any APIs to support this requirement. And we heard that Google plan to support hard-key method since Samsung make good experiences on S8
Do anyone help us to fix this gap?
Thank you!
You could use an Action link without any additional parameters specified to trigger the MAIN intent, or specify the custom intent you'd like to trigger.
I am attempting to build an on screen keyboard for Google TV using the Anymote protocol. Sending keys listed here works fine:
http://code.google.com/p/anymote-protocol/source/browse/proto/keycodes.proto
How can I send keys without keycodes like an ampersand? On the Google TV remote, I hit the left shift then #. Is it possible to emulate this?
Have you tried the Data event: https://developers.google.com/tv/remote/docs/anymote
I'm writing a Web app for Google TV and want to make use of the colour keys on the remote control for navigation.
I'm not getting any input from the keys in response to onkeypress or onkeydown events, does anyone know if it is possible to use these keys for input in Web apps? I have seen the keys used in apps on Google TV but I suspect these may be Android apps. I can get input from the keyboard keys and the D controller without any difficulty.
Thanks in advance,
Gordon.
The color key's are not currently supported within web applications. Chrome does not receive key events from the remote for the color keys.
These color keys are designed for universal remote functionalities on TV. Since there are no desktop equivalents to them, Chrome does not pass any keycode for them.
In general for available keys and keycodes, use the keycode tester here:
https://developers.google.com/tv/web/docs/implement_for_tv#keyboard
Is there any way in the iPhone SDK (not a jailbroken API, this needs to be AppStore-Compliant), to get the state of a connected wireless keyboard? e.g. which keys are pressed and which aren't? I have searched for this with google, but I am coming up short.
Any help would be greatly appreciated!
Not really. You can tell whether a keyboard is connected or not, but you won't get callbacks for corded shortcuts. There is clearly a way to do this, because Pages supports keyboard shortcuts (Cmd-Z, etc), but it's not in the public SDK.
I live in Canada, so am fortunate that I can tether. One issue is that to toggle tethering, you need to drill down four screens in Settings, which is just a big hassle.
A Google search returned nothing, so I was wondering if anyone here knew the code to turn on/off tethering?
I know there's a toggle for SBSettings, but I do not have a jailbroken phone, I just want to create an app I build onto my phone and have an icon for quickly toggling it.
Thanks
You cannot alter phone settings from within an application using any APIs allowed by the iPhone SDK. As you point out - there is an SBSettings toggle - which relies on a Private API (which you agree not to use when you get the iPhone SDK from Apple, incidentally).
There is a file located in the Preferences folder, along with the com.apple.SpringBoard.plist:
/var/mobile/Library/Preferences/com.apple.MobileInternetSharing.plist
In that file, you will want to set 1023 for key State to enable the Tethering feature. To disable the feature, you will want to set 1022 for key State.
This action is only possible on a jailbroken device