I'm trying to delete all screens from stack in android auto app with
screenManager.popToRoot().
But when I use it, it says that I have reached the 5 screen limit of the stack.
For example, if I'm doing this flow:
- Screen A
- Screen B
- Screen C
- Screen D
- Screen E
When I click on a button I created on screen E, I want to go back to Screen A and remove all stack.
Someone can tell me how I can do this? Thanks!