PDA

View Full Version : Chances of using Sensor using sencha Touch



rakesh_3607
13 Aug 2012, 6:22 AM
Hello,

As most of the devices are quipped with high accuracy sensors and in native development there are very simple API to use it.

1> How can i find which sensors are available in device using Sencha Touch ?
2> If yes, then are there any api for using sensor to get Information from sensor by sencha Touch ?

jerome76
13 Aug 2012, 11:47 AM
I posted this in your other topic (http://www.sencha.com/forum/showthread.php?236460-Operating-System-Layout-Size).

You can try using


window.outerHeight
//and
window.outerWidth
Also, this helped me out: http://docs.sencha.com/touch/2-0/#!/guide/environment_package

(http://docs.sencha.com/touch/2-0/#!/guide/environment_package)As for determining the device metrics, that would most likely be done with the native API.