#Region Activity Attributes
#FullScreen: True
#IncludeTitle: False
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private ListView1 As ListView
Dim cur As Cursor
Dim xui As XUI
Private ImageView1 As ImageView
Private Label1 As Label
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("CntList")
Dim lblList As Label
lblList = ListView1.SingleLineLayout.Label
lblList.TextColor= Colors.Black
lblList.TextSize = 18
cur = Starter.SQL1.ExecQuery("select * from content")
cur.Position = 0
For i = 0 To cur.RowCount -1
cur.Position = i
ListView1.AddSingleLine(cur.GetString("Title"))
Next
cur.Close
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Private Sub ImageView1_Click
StartActivity("HomeScreen")
Activity.Finish
End Sub
Private Sub imgBack_Click
StartActivity("HomeScreen")
Activity.Finish
End Sub
Private Sub ListView1_ItemClick (Position As Int, Value As Object)
Starter.Title = Value
ToastMessageShow(Starter.Title, False)
StartActivity("HbDiscription")
End Sub