Results 1 to 4 of 4

Thread: Sencha Touch 2 Profiles Issue

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Argentina
    Posts
    4
    Vote Rating
    0
      0  

    Default Sencha Touch 2 Profiles Issue

    Hello Community.
    I'm having an issue with profiles in ST2. When I test my application on the Galaxy Tab displays the Phone scripts!
    I really like to know how Sencha knows what's a Phone and what's a Tablet...

    Thanks for any information.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    What does the isActive methods on your profiles look like?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Location
    Argentina
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Hi, thanks for the reply.

    "Phone.js"
    Code:
    isActive: function() {
         return Ext.os.is.Phone;
    }
    "Tablet.js"
    Code:
    isActive: function() {
         return Ext.os.is.Tablet || Ext.os.is.Desktop;
    }
    That's the code. But, the problem was (I think!) that I was testing in Galaxy Tab simulator in my Eclipse. And by default it comes with android version 2.2.
    When I test in a real Galaxy Tab with android 3.x, it works perfectly!

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    Great. Be warned thought that we don't support Android 3.x, things may work but we are not going to guarantee that things will work. Android 3.x's browser has a lot of quirks and bugs.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

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
  •