-
10 Aug 2012 3:35 AM #1
Unanswered: Operating System , Layout Size
Unanswered: Operating System , Layout Size
Hello,
Is there anyway we can find the Which Operating system (Android, IOS etc) is running , because i want to provide different Orientation for IOS & Android.
Can i find out the size of the device (Horizontal length & Vertical Length) ?
-
10 Aug 2012 3:50 AM #2Sencha - Community Support Team
- Join Date
- May 2012
- Location
- Istanbul
- Posts
- 1,331
- Vote Rating
- 76
- Answers
- 124
Hi,
you can see this link : http://senchaexamples.com/2012/02/28/determining-the-current-devices-operating-system-using-sencha-touch-2/
it will be helpfull for yousword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
10 Aug 2012 2:09 PM #3
Hello,
Thanks for the reply.
This will help me .
Are there any way by which i can get the device resolution and specific device features such as (Resolution of the device, what are sensors available etc) ?
As far as i could find , There is an object called UserAgent, which gives all the information. Can you please help me out finding what specifically device information we can get by sencha touch 2.0 ??
Thanks a lot for ur time and effort..
-
13 Aug 2012 11:40 AM #4
You can try using
Also, this helped me out: http://docs.sencha.com/touch/2-0/#!/guide/environment_packageCode:window.outerHeight //and window.outerWidth
As for determining the device metrics, that would most likely be done with the native API.


Reply With Quote