O'Reilly logo

Mastering Android Game Development by Raul Portales

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Declaring it as a game

As you can see in the previous screenshot, the Leanback UI separates apps from games, and our game is listed among the apps. We are building a game and we want to be classified as such.

This is another property of the <application> tag that was also introduced in Lollipop for Android TV; we can declare the app to be a game.

<application
  […]
  android:isGame="true">

This will show the banner in the Games category.

Declaring it as a game

YASS listed in the Games category on an ADT-1

Declaring Leanback support

To allow Google Play to list our game when searching from an Android TV, we need to specifically declare that we support the Leanback UI. To do that, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required