question

robodroid avatar image
robodroid asked

Leanback Support Lib under FireOS 3

Hello, I've read that FireOS 5 will also support Android TV and the Leanback Support Library Layouts (e.g. BrowseFragment, CardViews etc.). How can I still support FireOS 3 with my app? My aim is it to release an app for Android TV and also for FireTV (support for FireOS3 and FireOS5). Should i avoid using the Leanback Support Lib in my app? Any hints and tips would be appreciated. Thanks.
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.

1 Answer

Nick Gardner avatar image
Nick Gardner answered
Hi, There's no perfect way to handle this right now. The best option would be detecting the OS version programatically, and then choosing which code to run based on the detected version. Once Fire OS 5 has been fully rolled out, you can swap the binary for one which only uses the Fire OS 5 compatible methods and layouts. Thanks, Nick
10 |5000

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