How to Detect if an Application is Running on a BlackBerry PlayBook Tablet or Simulator

by BlackBerry Development Advisor on ‎03-17-2011 10:36 AM (3,823 Views)

It is possible for an application to determine if it is running on a real BlackBerry® PlayBook™ tablet or in the BlackBerry® Tablet Simulator.  The following code example demonstrates how to detect this.

 

 

 

if (Capabilities.manufacturer.indexOf('VMware') == -1)
{
//It is a BlackBerry PlayBook Tablet.
}
else
{
//It is a BlackBerry PlayBook Simulator.
}