Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1937] Ti.Platform.displayCaps.density returning wrong value on Nexus 5

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-01-23T06:01:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, displaycaps, dpi
ReporterJonian Dervishi
AssigneeRitu Agrawal
Created2014-01-16T19:32:40.000+0000
Updated2016-03-08T07:40:51.000+0000

Description

Ti.Platform.displayCaps.density is returning the value 160 on the Nexus 5 device running android 4.4.2 while the correct one should be 445. [INFO] : Titanium.Platform.model: Nexus 5 [INFO] : Ti.Platform.displayCaps.density: medium [INFO] : Ti.Platform.displayCaps.dpi: 160 [INFO] : Ti.Platform.displayCaps.platformHeight: 592 [INFO] : Ti.Platform.displayCaps.platformWidth: 360 [INFO] : Ti.Platform.displayCaps.xdpi: 147.48367309570312 [INFO] : Ti.Platform.displayCaps.ydpi: 147.78167724609375 [INFO] : Ti.Platform.displayCaps.logicalDensityFactor: 1 [INFO] : Ti.Platform.displayCaps.logicalDensityFactor: 1

Comments

  1. Ritu Agrawal 2014-01-21

    [~joniand] We have not been able to reproduce this error. Ti.Platform.displayCaps.density is returning the correct value. [INFO] : Titanium.Platform.model: Nexus 5 [INFO] : Ti.Platform.displayCaps.density: xxhigh [INFO] : Ti.Platform.displayCaps.dpi: 480 [INFO] : Ti.Platform.displayCaps.platformHeight: 1776 [INFO] : Ti.Platform.displayCaps.platformWidth: 1080 Please let us know if this is still as issue for you.

JSON Source