Results 1 to 4 of 4

Thread: Operating System , Layout Size

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    10
    Vote Rating
    0
      0  

    Default 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 User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124
    Vote Rating
    91
      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
      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
    1,149
    Answers
    132
    Vote Rating
    101
      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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •