1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    10
    Vote Rating
    0
    rakesh_3607 is on a distinguished road

      0  

    Default 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) ?

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,331
    Vote Rating
    76
    Answers
    124
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    10
    Vote Rating
    0
    rakesh_3607 is on a distinguished road

      0  

    Default


    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..

  4. #4
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    Answers
    84
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    You can try using
    Code:
    window.outerHeight
    //and
    window.outerWidth
    Also, this helped me out: 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.

Tags for this Thread