question

David T. Schaller avatar image
David T. Schaller asked

What is DeviceModel?

We're modifying a Unity3D app for Fire TV. We need to target the button inputs from the remote, but can't find any info about the deviceModel name. Does anyone know? Message was edited by: David T. Schaller
fire tv
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jon R. Helms avatar image
Jon R. Helms answered
Here is data from android.os.Build, the only thing I changed was the value of the DeviceID, though the fake DeviceID I have here is the same length and the original also appeared to be hex and had 3 characters in it. bueller was apparently the code-name for the Fire TV before it was announced. DeviceDetails(3212): DeviceID type: ANDROID_ID DeviceDetails(3212): DeviceID: 9274f2c8d3245362 DeviceDetails(3212): Brand: qcom DeviceDetails(3212): Manufacturer: Amazon DeviceDetails(3212): Model: AFTB DeviceDetails(3212): Product: bueller DeviceDetails(3212): Android: 4.2.2 In case you want the same code I used Log.d to print out code I use to capture device info to be sent to my server when users send help requests. It does require android.permission.READ_PHONE_STATE. DeviceDetails += "\r\nDeviceID: " + DeviceID + "\r\nBrand: " + android.os.Build.BRAND + "\r\nManufacturer: " + android.os.Build.MANUFACTURER + "\r\nModel: " + android.os.Build.MODEL + "\r\nProduct: " + android.os.Build.PRODUCT + "\r\nAndroid: " + android.os.Build.VERSION.RELEASE; Hope this helps. Good luck.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David T. Schaller avatar image
David T. Schaller answered
thanks much!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

T. Stephens avatar image
T. Stephens answered
Hi, I'm wondering if there's a way to detect future Fire TV devices. I'd like to customize some menu behavior based on whether the device has a touch screen. I haven't tried this yet but my thought is to look for an input device that supports touch: int[] ids = InputDevice.getDevicesIds(); for (int id : ids) { InputDevice device = InputDevice.getDevice(id); int sources = device.getSources(); if (sources & SOURCE_TOUCHPAD) { // Probably not Fire TV..? } } Maybe Game Circle has something more definitive?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
There is a way to determine if a device supports touch screen controls. Every device has a Configuration object. The code goes like this: Configuration config = getResources().getConfiguration(); if (config.touchscreen == Configuration.TOUCHSCREEN_NOTOUCH) { // This screen doesn't support touch } else { // This screen supports touch } Hope this helps...
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.