-
17 May 2012 7:16 AM #1
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.
-
21 May 2012 6:13 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
What does the isActive methods on your profiles look like?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
23 May 2012 6:23 AM #3
Hi, thanks for the reply.
"Phone.js"
"Tablet.js"Code:isActive: function() { return Ext.os.is.Phone; }
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.Code:isActive: function() { return Ext.os.is.Tablet || Ext.os.is.Desktop; }
When I test in a real Galaxy Tab with android 3.x, it works perfectly!
-
23 May 2012 6:28 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote