hi everyone , i have activity modules, in the activity module 1 i have this code
and in the activity module 2 i have this code
my question is , how i can do to the activity module 1 recognize the editext5 what is in the activity module 2 sorry for my bad english
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
If FirstTime Then
SMTP.Initialize("smtp.gmail.com", 465, "[email protected]", "jaja1234", "SMTP")
SMTP.UseSSL = True 'Esta linea la ponemos ya que Gmail requiere SSL
SMTP.Subject = (EditText2.Text)
SMTP.HtmlBody = True
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
SMTP.Body = EditText1.Text
SMTP.To.Add(EditText6.Text)
SMTP.Send
End Sub
Sub SMTP_MessageSent(Success As Boolean)
If Success=True Then StatusSend1="SI enviado"
If Success=False Then StatusSend1="NO Enviado"
Log(StatusSend1)
End Sub
Sub Button2_Click
Activity.LoadLayout("2")
End Sub
and in the activity module 2 i have this code
B4X:
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 EditText5 As EditText
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("Layout2")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
my question is , how i can do to the activity module 1 recognize the editext5 what is in the activity module 2 sorry for my bad english