(Information and examples taken from the DroidScript documentation)
The GetAppName method gets the name of the running application.
app.GetAppName();
function OnStart() { name = app.GetAppName(); app.ShowPopup( name ); }