Set a DroidScript project name which will be launched automatically when DroidScript starts.
Note: This function is deprecated. in favour of ide.AutoStart
See Also:
SetSharedApp,
SetAutoBoot
Example - Auto Start 'Hello World'
function OnStart()
{
app.SetAutoStart( "Hello World" );
app.ShowPopup( "You may now restart DroidScript." );
}
from native import app
def OnStart():
app.SetAutoStart( "Hello World" )
app.ShowPopup( "You may now restart DroidScript." )
Example - Unset Autostart
function OnStart()
{
app.SetAutoStart( "" );
app.ShowPopup( "Autostart unset." );
}
from native import app
def OnStart():
app.SetAutoStart( "" )
app.ShowPopup( "Autostart unset." )