Android Question Transfer the input data

Junctbr

Member
First Activity
Code: Copy
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

Code: Copy
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Layout1")  
    myVar = etName.Text
End Sub

Second Activity:
Code: Copy
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. ^^
 
Upvote 0
Back
Top