Skip to content

Instantly share code, notes, and snippets.

@iotashan
Created July 1, 2014 17:24
Show Gist options
  • Save iotashan/4a6a347547a9c49a3a68 to your computer and use it in GitHub Desktop.
Save iotashan/4a6a347547a9c49a3a68 to your computer and use it in GitHub Desktop.
Android device screen specs
Ti.API.info('model: '+JSON.stringify(Ti.Platform.model));
Ti.API.info('Android: '+JSON.stringify(Ti.Platform.Android));
Ti.API.info('displayCaps: '+JSON.stringify(Ti.Platform.displayCaps));
[INFO] : model: "SPH-M840"
[INFO] : Android: {"osname":"android","bubbleParent":true,"batteryState":0,"name":"android","version":"4.1.2","netmask":"255.255.255.0","locale":"en-US","processorCount":1,"manufacturer":"samsung","username":"se.infra","batteryLevel":-1,"address":"192.168.12.128","model":"SPH-M840","runtime":"v8","architecture":"ARMv7 Processor rev 2 (v7l)","batteryMonitoring":false,"displayCaps":{"bubbleParent":true,"ydpi":211.6666717529297,"xdpi":217.7142791748047,"logicalDensityFactor":1.5,"density":"high","platformWidth":480,"dpi":240,"platformHeight":800,"apiName":"Ti.Platform.DisplayCaps"},"macaddress":"10:D5:42:EA:B9:BF","availableMemory":2428648,"apiName":"Ti.Platform.Android","ostype":"32bit","id":"32a36719e34a63d9","physicalSizeCategory":2}
[INFO] : displayCaps: {"bubbleParent":true,"ydpi":211.6666717529297,"xdpi":217.7142791748047,"logicalDensityFactor":1.5,"density":"high","platformWidth":480,"dpi":240,"platformHeight":800,"apiName":"Ti.Platform.DisplayCaps"}
[INFO] : model: "SPH-D710"
[INFO] : Android: {"osname":"android","bubbleParent":true,"batteryState":0,"name":"android","version":"4.0.4","netmask":"255.255.255.0","locale":"en-US","processorCount":2,"manufacturer":"samsung","username":"se.infra","batteryLevel":-1,"address":"192.168.12.115","model":"SPH-D710","runtime":"v8","architecture":"ARMv7 Processor rev 1 (v7l)","batteryMonitoring":false,"displayCaps":{"bubbleParent":true,"ydpi":218.49462890625,"xdpi":217.7142791748047,"logicalDensityFactor":1.5,"density":"high","platformWidth":480,"dpi":240,"platformHeight":800,"apiName":"Ti.Platform.DisplayCaps"},"macaddress":"FC:C7:34:22:4F:6E","availableMemory":305616,"apiName":"Ti.Platform.Android","ostype":"32bit","id":"121ed7b436398b88","physicalSizeCategory":2}
[INFO] : displayCaps: {"bubbleParent":true,"ydpi":218.49462890625,"xdpi":217.7142791748047,"logicalDensityFactor":1.5,"density":"high","platformWidth":480,"dpi":240,"platformHeight":800,"apiName":"Ti.Platform.DisplayCaps"}
[INFO] : model: "SGH-T999"
[INFO] : Android: {"osname":"android","bubbleParent":true,"batteryState":0,"name":"android","version":"4.3","netmask":"255.255.255.0","locale":"en-US","processorCount":2,"manufacturer":"samsung","username":"se.infra","batteryLevel":-1,"address":"192.168.12.125","model":"SGH-T999","runtime":"v8","architecture":"ARMv7 Processor rev 0 (v7l)","batteryMonitoring":false,"displayCaps":{"bubbleParent":true,"ydpi":306.71600341796875,"xdpi":304.79901123046875,"logicalDensityFactor":2,"density":"xhigh","platformWidth":720,"dpi":320,"platformHeight":1280,"apiName":"Ti.Platform.DisplayCaps"},"macaddress":"50:CC:F8:D8:F1:81","availableMemory":3151808,"apiName":"Ti.Platform.Android","ostype":"32bit","id":"5ce7d4b8aba0e472","physicalSizeCategory":2}
[INFO] : displayCaps: {"bubbleParent":true,"ydpi":306.71600341796875,"xdpi":304.79901123046875,"logicalDensityFactor":2,"density":"xhigh","platformWidth":720,"dpi":320,"platformHeight":1280,"apiName":"Ti.Platform.DisplayCaps"}
[INFO] : model: "SCH-R970"
[INFO] : Android: {"osname":"android","bubbleParent":true,"batteryState":0,"name":"android","version":"4.4.2","netmask":"255.255.255.0","locale":"en-US","processorCount":4,"manufacturer":"samsung","username":"dpi","batteryLevel":-1,"address":"192.168.12.107","model":"SCH-R970","runtime":"v8","architecture":"ARMv7 Processor rev 0 (v7l)","batteryMonitoring":false,"displayCaps":{"bubbleParent":true,"ydpi":439.35101318359375,"xdpi":442.45098876953125,"logicalDensityFactor":3,"density":"xxhigh","platformWidth":1080,"dpi":480,"platformHeight":1920,"apiName":"Ti.Platform.DisplayCaps"},"macaddress":"40:0E:85:44:CD:8F","availableMemory":6763392,"apiName":"Ti.Platform.Android","ostype":"32bit","id":"8068ec76e5f64239","physicalSizeCategory":2}
[INFO] : displayCaps: {"bubbleParent":true,"ydpi":439.35101318359375,"xdpi":442.45098876953125,"logicalDensityFactor":3,"density":"xxhigh","platformWidth":1080,"dpi":480,"platformHeight":1920,"apiName":"Ti.Platform.DisplayCaps"}
I/TiAPI (29261): model: "GT-P5210"
I/TiAPI (29261): Android: {"batteryMonitoring":false,"netmask":"255.255.255.0","osname":"android","manufacturer":"samsung","id":"7af4f4ef865947ea","version":"4.2.2","macaddress":"B8:5E:7B:A2:6C:9A","model":"GT-P5210","processorCount":4,"batteryLevel":-1,"bubbleParent":true,"displayCaps":{"logicalDensityFactor":1,"bubbleParent":true,"density":"medium","xdpi":149.82400512695312,"platformHeight":1280,"platformWidth":800,"apiName":"Ti.Platform.DisplayCaps","ydpi":149.41099548339844,"dpi":160},"batteryState":0,"locale":"en-US","ostype":"32bit","username":"se.infra","availableMemory":1417264,"apiName":"Ti.Platform.Android","runtime":"v8","architecture":"Unknown","name":"android","address":"192.168.12.106","physicalSizeCategory":4}
I/TiAPI (29261): displayCaps: {"logicalDensityFactor":1,"bubbleParent":true,"density":"medium","xdpi":149.82400512695312,"platformHeight":1280,"platformWidth":800,"apiName":"Ti.Platform.DisplayCaps","ydpi":149.41099548339844,"dpi":160}
I/TiAPI ( 2967): model: "C5170"
I/TiAPI ( 2967): Android: {"osname":"android","bubbleParent":true,"batteryState":0,"name":"android","version":"4.0.4","netmask":"255.255.255.0","locale":"en-US","processorCount":1,"manufacturer":"kyocera","username":"release","batteryLevel":-1,"address":"192.168.12.131","model":"C5170","runtime":"v8","architecture":"ARMv7 Processor rev 2 (v7l)","batteryMonitoring":false,"displayCaps":{"bubbleParent":true,"ydpi":160.42105102539062,"xdpi":159.37254333496094,"logicalDensityFactor":1,"density":"medium","platformWidth":320,"dpi":160,"platformHeight":480,"apiName":"Ti.Platform.DisplayCaps"},"macaddress":"24:5f:df:b1:df:d5","availableMemory":1215072,"apiName":"Ti.Platform.Android","ostype":"32bit","id":"a701f2bfacd6f79e","physicalSizeCategory":2}
I/TiAPI ( 2967): displayCaps: {"bubbleParent":true,"ydpi":160.42105102539062,"xdpi":159.37254333496094,"logicalDensityFactor":1,"density":"medium"
[INFO] : model: "LG-US730"
[INFO] : Android: {"osname":"android","bubbleParent":true,"batteryState":0,"name":"android","version":"4.0.4","netmask":"255.255.255.0","locale":"en-US","processorCount":1,"manufacturer":"LGE","username":"sunghyun86.woo","batteryLevel":-1,"address":"192.168.12.110","model":"LG-US730","runtime":"v8","architecture":"ARMv7 Processor rev 2 (v7l)","batteryMonitoring":false,"displayCaps":{"bubbleParent":true,"ydpi":160,"xdpi":160.42105102539062,"logicalDensityFactor":1.5,"density":"high","platformWidth":480,"dpi":240,"platformHeight":800,"apiName":"Ti.Platform.DisplayCaps"},"macaddress":"A8:16:B2:54:FF:23","availableMemory":1425120,"apiName":"Ti.Platform.Android","ostype":"32bit","id":"c5ead2e8e20782e6","physicalSizeCategory":2}
[INFO] : displayCaps: {"bubbleParent":true,"ydpi":160,"xdpi":160.42105102539062,"logicalDensityFactor":1.5,"density":"high","platformWidth":480,"dpi":240,"platformHeight":800,"apiName":"Ti.Platform.DisplayCaps"}
[INFO] : model: "Nexus 5"
[INFO] : Android: {"osname":"android","bubbleParent":true,"batteryState":0,"name":"android","version":"L","netmask":"255.255.255.0","locale":"en-US","processorCount":4,"manufacturer":"LGE","username":"android-build","batteryLevel":-1,"address":"192.168.12.122","model":"Nexus 5","runtime":"v8","architecture":"ARMv7 Processor rev 0 (v7l)","batteryMonitoring":false,"displayCaps":{"bubbleParent":true,"ydpi":443.3450012207031,"xdpi":442.45098876953125,"logicalDensityFactor":3,"density":"xxhigh","platformWidth":1794,"dpi":480,"platformHeight":1080,"apiName":"Ti.Platform.DisplayCaps"},"macaddress":"bc:f5:ac:f5:b5:f1","availableMemory":172699352,"apiName":"Ti.Platform.Android","ostype":"32bit","id":"bfccede8ad552f5c","physicalSizeCategory":2}
[INFO] : displayCaps: {"bubbleParent":true,"ydpi":443.3450012207031,"xdpi":442.45098876953125,"logicalDensityFactor":3,"density":"xxhigh","platformWidth":1794,"dpi":480,"platformHeight":1080,"apiName":"Ti.Platform.DisplayCaps"}
I/TiAPI (21258): model: "Nexus 7"
I/TiAPI (21258): Android: {"osname":"android","bubbleParent":true,"batteryState":0,"name":"android","version":"L","netmask":"255.255.255.0","locale":"en-US","processorCount":4,"manufacturer":"asus","username":"android-build","batteryLevel":-1,"address":"192.168.12.104","model":"Nexus 7","runtime":"v8","architecture":"ARMv7 Processor rev 0 (v7l)","batteryMonitoring":false,"displayCaps":{"bubbleParent":true,"ydpi":322.96600341796875,"xdpi":320.8420104980469,"logicalDensityFactor":2,"density":"xhigh","platformWidth":1920,"dpi":320,"platformHeight":1104,"apiName":"Ti.Platform.DisplayCaps"},"macaddress":"ac:22:0b:3e:42:25","availableMemory":191053268,"apiName":"Ti.Platform.Android","ostype":"32bit","id":"66a546874f899cdf","physicalSizeCategory":3}
I/TiAPI (21258): displayCaps: {"bubbleParent":true,"ydpi":322.96600341796875,"xdpi":320.8420104980469,"logicalDensityFactor":2,"density":"xhigh","platformWidth":1920,"dpi":320,"platformHeight":1104,"apiName":"Ti.Platform.DisplayCaps"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment