PDA

View Full Version : Checking Compatibilty with Android



anishkumar
20 Oct 2010, 8:14 PM
I have a code in a if condition as follows..

if (Ext.is.AndroidOS) {
//something happens
}
else
{
//something happens
}
I check the code with android.But the else condition is executing.....how to check the current OS is android...Is above condition is Wrong????

Kask
21 Oct 2010, 12:03 AM
The correct syntax is Ext.is.Android ...

http://dev.sencha.com/deploy/touch/docs/?class=Ext.is