1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Argentina
    Posts
    4
    Vote Rating
    0
    DiegoPaleo is on a distinguished road

      0  

    Default Sencha Touch 2 Profiles Issue

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    898
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    What does the isActive methods on your profiles look like?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Location
    Argentina
    Posts
    4
    Vote Rating
    0
    DiegoPaleo is on a distinguished road

      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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    898
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread