Causes the current running APK or its Service to be started automatically when your device boots.
See Also: SetAutoStart
Example - Set Auto Boot
function OnStart()
{
app.SetAutoBoot( true );
app.ShowPopup( "You may reboot your phone now." );
}
from native import app
def OnStart():
app.SetAutoBoot( True )
app.ShowPopup( "You may reboot your phone now." )
Example - Unset Auto Boot
function OnStart()
{
app.SetAutoBoot( false );
app.ShowPopup( "AutoBoot Disabled." );
}
from native import app
def OnStart():
app.SetAutoBoot( False )
app.ShowPopup( "AutoBoot Disabled." )