Sub Activity_Create(FirstTime As Boolean)
If FirstTime=True Then
SQL.Initialize(File.DirInternal, "WDOrders.db", True)
....
...
...
end sub
Sub Activity_Keypress (KeyCode As Int) As Boolean
Dim Answ As Int
Dim Txt As String
Log(KeyCode)
If KeyCode=KeyCodes.KEYCODE_BACK Then
Txt = "Do you really want to Quit the Program ?"
Answ=Msgbox2(Txt,"ATTENTION","Yes","","No",LoadBitmap(File.DirAssets,"quit.gif"))
If Answ=DialogResponse.POSITIVE Then
SQL.Close
end if
end if