-
13 Oct 2010 5:26 PM #1
Detecting Phone/OS
Detecting Phone/OS
Hi,
In Sencha Touch, is there a easy way to detect the device os (android vs iphone/ipod). I'm not seeing the same functions that Ext offers for this.
Thanks,
Kevin
-
13 Oct 2010 5:33 PM #2Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
14 Oct 2010 5:10 AM #3
ah, brilliant thanks
-
14 Oct 2010 5:12 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
API ftw


Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
8 Feb 2012 7:51 AM #5
YOu can write your own
YOu can write your own
Code:var isPhone = function() { return (/android|iphone/i.test(navigator.userAgent.toLowerCase()) && !(/ipad/i.test(navigator.userAgent.toLowerCase()))); };
Similar Threads
-
Phone Number Validation
By cchain in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 24 Jul 2009, 7:47 AM -
TextField formatted phone
By quantum1 in forum Community DiscussionReplies: 2Last Post: 7 Apr 2009, 5:15 AM -
Phone Number renderer
By frew in forum Ext 2.x: User Extensions and PluginsReplies: 1Last Post: 2 Apr 2009, 2:24 PM -
Phone Masking
By deblasio in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 18 Sep 2008, 10:36 AM


Reply With Quote