(Information and examples taken from the DroidScript documentation)
The GetScreenDensity method gets the density of the phone/tablet screen in dots per inch (dpi).
app.GetScreenDensity();
function OnStart() { dpi = app.GetScreenDensity(); app.ShowPopup( "dpi = " + dpi ); }