Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim dialog As AlertDialogBuilder
Private Button1 As Button
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
dialog.Initialize("AlertDialog")
End Sub
Sub Button1_Click
dialog.setCancelable(True).setNegativeButton("No").setPositiveButton("Yo").setTitle("DonManfred presents").setMultiChoiceItems(Array As String("1","2","3","4","5"),Array As Boolean(True,False,False,True,False,False)).show
End Sub
Sub AlertDialog_onCancel()
Log($"onCancel()"$)
End Sub
Sub AlertDialog_onClick(button As Int, index As Int)
Log($"onClick(${button},${index})"$)
End Sub
Sub AlertDialog_onDismiss()
Log($"onDismiss()"$)
End Sub
Sub AlertDialog_onItemClick(index As Int,selected As Boolean)
Log($"onItemClick(${index},${selected})"$)
End Sub
Sub AlertDialog_onKey(key As Int, keyevent As Int)
End Sub