4

I am working on Acer Chromebook R11. The Android version of Chromebook is 7.1.1. The external monitor is connected via HDMI port on Chromebook. OS is showing both the displays and am able to drag the apps from one window to another window.

I want my app to display on both the screens. While querying for the displays, android display manager is returning only the default display information. The external monitor information is not present with the displaymanager.

 import android.hardware.display.DisplayManager;
 ..
 ..
DisplayManager displayManager = (DisplayManager) getApplicationContext().getSystemService(Context.DISPLAY_SERVICE);
    Display[] var1 = displayManager.getDisplays();
Display[] var2 = displayManager.getDisplays( DisplayManager.DISPLAY_CATEGORY_PRESENTATION);

var1 is always having the default built-in screen information. I am expecting it to have information about the two displays. var2 is always null.

Is there any issue with this API on Chromebook?

Kara
  • 6,115
  • 16
  • 50
  • 57
Rajendra Batta
  • 127
  • 1
  • 8
  • From docs: `getDisplays() Gets all currently valid logical displays.` From that point `getDisplays(category)` seems redundant. How many displays are in `var1` array? – Eugen Pechanec Dec 08 '17 at 09:04
  • @ Eugen Pechanec , Var1 has 1 display that is built-in display. Agree Var2 is redundant, but just added there to verify. – Rajendra Batta Dec 08 '17 at 12:08

1 Answers1

0

This api is working after I updated the OS on chromebook via beta channel.

Rajendra Batta
  • 127
  • 1
  • 8