Sub Activity_Create(FirstTime As Boolean)
Log("Start main")
phone1.SetScreenOrientation(1) ' fix as portrait
ListView1.Initialize("ListView1")
Activity.AddView(ListView1, 0%x, 10%y, 40%x, 80%y)
If FirstTime Then
Log("first time ")
Activity.LoadLayout("Main")
Log("++++++++++Counter "&IsPaused(Counter))
serv = 1
StartService(Counter)
Get_Screen_Resolution
End If
DoEvents