0

The problem:

I'm developing an app for Android Auto and I would like to show some information on the secondary screen/display (if available) the same way some navigation and music apps do.

For example: Some cars have heads-up-display or a tiny screen in the dashboard that acts like another screen and is used by navigation apps to show turn-by-turn information. Music apps generally uses this feature to show information about the music being played.

What I want:

My use case will be similar to the music app, I want to show some text and maybe a little image/icon, but in order to do that and adapt the layout to the screen format I need to know:

  • There is a secondary screen? YES/NO
  • The screen type.
  • The secondary screen size. ( width and height )
  • The secondary screen resolution and dpi

What I already tried:

Searched the entire Android Developer site and forums but didn't find anything on how to get those properties when having a secondary screen. Most articles only explain multi-window behavior or things related to resize an app when an external display is connected.

Here are some links showing similar results of what I want:

Android Auto: Maps showing turn-by-turn on HUD

Android Auto: Maps showing turn-by-turn on Tiny screen on dashboard

0 Answers0