This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
built_in:app_events [2014/10/08 17:07] stevegarman |
built_in:app_events [2015/03/07 10:28] octazid add OnAlarm() |
||
---|---|---|---|
Line 12: | Line 12: | ||
|OnAlarm() |an alarm previously set by app.SetAlarm() is triggered | | |OnAlarm() |an alarm previously set by app.SetAlarm() is triggered | | ||
- | The code of the sample that is bundled with AndroidScript | + | The code of the sample that is bundled with DroidScript |
<code javascript appEvents.js> | <code javascript appEvents.js> | ||
//Called when application is created. | //Called when application is created. | ||
Line 20: | Line 20: | ||
app.SetMenu( " | app.SetMenu( " | ||
app.EnableBackKey( false ); | app.EnableBackKey( false ); | ||
- | } | + | |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
//Called when user selects a menu item. | //Called when user selects a menu item. | ||
Line 55: | Line 59: | ||
app.ShowPopup( " | app.ShowPopup( " | ||
} | } | ||
- | </ | + | |
+ | // | ||
+ | // | ||
+ | function OnAlarm( id ) | ||
+ | { | ||
+ | app.ShowPopup( " | ||
+ | } </ |