First Activity
Second Activity:
The result is ("blank")
I want to display in lblUser.text in 2nd activity the name I input at etName.Text
Thanks in advance for any tips. ^^
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Public myVar As String
End Sub
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout1")
myVar = etName.Text
End Sub
Second Activity:
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("layout2")
lblUser.Text = Main.myVar
End Sub
The result is ("blank")
I want to display in lblUser.text in 2nd activity the name I input at etName.Text
Thanks in advance for any tips. ^^