cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaspy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12910) Cordova Android uses wrong screen density
Date Wed, 21 Jun 2017 07:01:00 GMT

    [ https://issues.apache.org/jira/browse/CB-12910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057072#comment-16057072
] 

Gaspy commented on CB-12910:
----------------------------

Both Chrome and the Cordova webview have the same version: 58.0.3029.83.

Something possibly interesting I've seen via logcat:
06-21 09:38:18.641  1419  3316 I ActivityManager: Start proc 25494:xxxxx/u0a138 for activity
xxxxx/.MainActivity
...
06-21 09:38:18.665  1419  1979 D CompatibilityInfo: mCompatibilityFlags - 4
06-21 09:38:18.665  1419  1979 D CompatibilityInfo: applicationDensity - 320
06-21 09:38:18.665  1419  1979 D CompatibilityInfo: applicationScale - 1.0
06-21 09:38:18.665  1419  1979 I ActivityManager: DSS on for xxxxx and scale is 0.75

When launching other apps, the message says that scale is 1.0


> Cordova Android uses wrong screen density
> -----------------------------------------
>
>                 Key: CB-12910
>                 URL: https://issues.apache.org/jira/browse/CB-12910
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: cordova@7.0.0
>         Environment: Samsung Galaxy Tab S and Galaxy Tab S2, Android 6.0.1
>            Reporter: Gaspy
>              Labels: android, density, dpi, webview
>         Attachments: sharp-blurry.png
>
>
> In some circumstances, the Cordova webview uses wrong screen density, resulting in blurrier
text and images.
> With the default blank Cordova app (cordova create MyApp; cordova add platform android;
cordova run android), at least on two tablets - Samsung Galaxy Tab S 8.4" and Samsung Galaxy
Tab S2 8" on Android 6.0.1, if one runs window.devicePixelRatio, the result is 1.5 instead
of 2. Querying the same from Chrome or Samsung browser yields the correct result, 2.
> I tested the same app on a Samsung Galaxy A3 2017 phone, also running Android 6.0.1 and
the result was correct, so the issue does not affect all devices.
> I tested with a more complex app and the difference between Cordova and browser is noticeable.

> Of course, the default app uses the viewport metatag <meta name="viewport" content="user-scalable=no,
initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"> and no plugins.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message