Table of Contents

GetScreenDensity

(Information and examples taken from the DroidScript documentation)

Description

The GetScreenDensity method gets the density of the phone/tablet screen in dots per inch (dpi).

 app.GetScreenDensity();

Example

function OnStart()
{
  dpi = app.GetScreenDensity();
  app.ShowPopup( "dpi = " + dpi );
}