Hi, everybody!
I started with programming android4basic examples a couple days ago and I am fine with most of the examples provided by this forum. But I still haven't found an explanation of what "Initialize" is for. I am a experienced VB programmer since several years but I cannot imagine how this method works….
Example:
I created a very simple view with the following declarations:
In example 1, the background color of the panel gets green
In example 2, the background color of the panel remains black
Sub Globals
Dim Monitor As Panel
End Sub
Case 1)
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("HeartRate")
Monitor.Color = Colors.Green
End Sub
Case 2)
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("HeartRate")
Monitor.Initialize("Monitor")
Monitor.Color = Colors.Green
End Sub
Regards, Harald (Germany)
I started with programming android4basic examples a couple days ago and I am fine with most of the examples provided by this forum. But I still haven't found an explanation of what "Initialize" is for. I am a experienced VB programmer since several years but I cannot imagine how this method works….
Example:
I created a very simple view with the following declarations:
In example 1, the background color of the panel gets green
In example 2, the background color of the panel remains black
Sub Globals
Dim Monitor As Panel
End Sub
Case 1)
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("HeartRate")
Monitor.Color = Colors.Green
End Sub
Case 2)
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("HeartRate")
Monitor.Initialize("Monitor")
Monitor.Color = Colors.Green
End Sub
Regards, Harald (Germany)