TomCobo
TomCobo

Reputation: 2916

How can I check the Fire OS version programmatically?

I'd like to check programmatically the Fire OS version of my running device. Not the Android version.

The reason I want that version is because there is one capability which is not shown on old Fire OS versions and I'd like to include it on my app.

Note: sometimes the devices are not updating the OS immediately.

Upvotes: 4

Views: 2247

Answers (2)

Offbeatmammal
Offbeatmammal

Reputation: 8238

In one of my FireTV apps I needed to track that, so I use:

Log.v(TAG,Build.MANUFACTURER + " " + Build.MODEL + " " + Build.DEVICE+ " " + Build.VERSION.INCREMENTAL + " " + Build.SERIAL);

to get fairly specific version and device model info. I've not updated the app for a while so not 100% sure it's still going to give you what you need (won't be near a device I can check with for a few days)

Upvotes: 4

Tom Johnson
Tom Johnson

Reputation: 759

There's not an easy or consistent way to detect the Fire OS version programmatically. However, for the feature you want to detect, try getting an instance of CaptioningManager and call getUserStyle(). On older versions of Fire TV, this method used to return null, but now I believe an actual value gets returned. I haven't tested this, though.

Upvotes: 1

Related Questions