There is a Template restriction, the 5th step must be NavigationTemplate, PaneTemplate or MessageTemplate.
I'd like to know How to get the current total number of steps.
There is a Template restriction, the 5th step must be NavigationTemplate, PaneTemplate or MessageTemplate.
I'd like to know How to get the current total number of steps.
If you are following the recommendation of having a 1:1 relationship between screen and template type, you can use ScreenManager::getStackSize to get this count (assuming any updates to a screen meet the template refresh criteria). Check out the docs on Template restrictions for more details on this.
You can find how to do it following this link: https://developer.android.com/training/cars/apps#template-restrictions
Here you find a note on how to Enable debug overlay and you can find it in your debugger.