If I understood it right, we have two options when porting an existing game to Android TV:
-
create a new version for TV (new APK, new game in Google Play dashboard)
-
expand the existing version to support Android TV
The first option is easier to implement but the second would be better, I guess.
Now, if we go with the second option there are several challenges because we have to change the game a bit depending if it is running on mobile or TV (e.g. game controller support, exclude some missing features - e.g. facebook, change menu behaviur etc.)
The first step would obviously be to determine if the game is running on the TV.
How can we do it in Corona?
Here is what Android documentation recommends:
Check for a TV Device
If you are building an app that operates both on TV devices and other devices, you may need to check what kind of device your app is running on and adjust the operation of your app. For instance, if you have an app that can be started through an Intent, your application should check the device properties to determine if it should start a TV-oriented activity or a phone activity.
The recommended way to determine if your app is running on a TV device is to use theUiModeManager.getCurrentModeType()Â method to check if the device is running in television mode. The following example code shows you how to check if your app is running on a TV device:
public static final String TAG = “DeviceTypeRuntimeCheck”;
UiModeManager uiModeManager = (UiModeManager) getSystemService(UI_MODE_SERVICE);
if (uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION) {
  Log.d(TAG, “Running on a TV Device”)
} else {
  Log.d(TAG, “Running on a non-TV Device”)
}
Second question is: Are ads supported on TV?