Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14553] Android: Galaxy S4 always returns Ti.Platform.displayCaps.density as 'medium'

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-07-19T21:39:16.000+0000
Affected Version/sRelease 3.1.0, Release 3.1.1
Fix Version/s2013 Sprint 15 API, 2013 Sprint 15, Release 3.2.0
ComponentsAndroid
Labelsandroid, density, module_android, qe-manualtest, qe-testadded
ReporterMeenakshi Pathak
AssigneeHieu Pham
Created2013-07-15T11:43:27.000+0000
Updated2014-11-20T19:40:23.000+0000

Description

On Samsung Galaxy S4, Titanium API returns Ti.Platform.displayCaps.density as medium. Note: It has high resolution 1080 x 1920 pixels screen and high pixel density 441 ppi. Test Case:
Ti.API.info("density: " + Ti.Platform.displayCaps.density);
1. Run code, should see 'density: xxhigh'

Comments

  1. Eric Merriman 2013-07-15

    Verified Ti.Platform.displayCaps.density returns "medium" on S4 with 3.1.1.GA. Additional displayCaps output for this device: Ti.Platform.displayCaps.density = medium Ti.Platform.displayCaps.dpi = 480 Ti.Platform.displayCaps.platformHeight = 1920 Ti.Platform.displayCaps.platformWidth = 1080 Ti.Platform.displayCaps.xdpi = About 442 Ti.Platform.displayCaps.ydpi = About 439 Ti.Platform.displayCaps.logicalDensityFactor = 3
  2. Hieu Pham 2013-07-16

    https://github.com/appcelerator/titanium_mobile/pull/4455
  3. Lokesh Choudhary 2013-10-22

    Verified the fix. We see 'density: xxhigh'. Thus closing. Environment: Appcel Studio : 3.2.0.201310221639 Ti SDK : 3.2.0.v20131022050844 Mac OSX : 10.8.5 Device: Samsung Galaxy S4 running android 4.2.2 CLI - 3.2.0 with hash 72f7426b4ee6c2d2883c666d5b7e03906a16012f

JSON Source