New issue
Advanced search Search tips

Issue 706764 link

Starred by 2 users

Issue metadata

Status: Unconfirmed
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

ARC based app cannot get correct DPI value with Android display manager interface

Reported by laffier....@gmail.com, Mar 30 2017

Issue description

UserAgent: Mozilla/5.0 (X11; CrOS x86_64 9000.91.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.110 Safari/537.36
Platform: 9000.91.0 (Official Build) stable-channel link

Steps to reproduce the problem:
1.set Chromebook Pixel 2013/2015 to best resolution
Run the following code in ARC based app in Chromebook Pixel 2013/2015

DisplayMetrics dm = new DisplayMetrics();
mActivity.getWindowManager().getDefaultDisplay().getMetrics(dm);
int dpi = dm.densityDpi;

2.set Chromebook Pixel 2013/2015 to native resolution
Run the following code in ARC based app in Chromebook Pixel 2013/2015

DisplayMetrics dm = new DisplayMetrics();
mActivity.getWindowManager().getDefaultDisplay().getMetrics(dm);
int dpi = dm.densityDpi;

What is the expected behavior?
1. the dpi value should be 120
2. the dpi value should be 240

What went wrong?
1.We got 240 in the 240 in the first step
2.We got 120 in the 240 in the first step

Did this work before? N/A 

Chrome version: 56.0.2924.110  Channel: stable
OS Version: 9000.91.0
Flash Version: Shockwave Flash 24.0 r0

We can get correct value with Chrome.system.display.getInfo
 
Components: Platform>ARC
Components: Platform>Apps>ARC

Sign in to add a comment