I use this thenic:
Create a PUBLIC VAR in Process_Global (frmUsuario activity sample)
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Type TD_Usuario(Codigo As Int, Nombre As String, Clave As String)
Public AccionEnForm As String
End Sub
and in other activity, BEFORE CALL THIS activity somethink like this:
frmUsuario.AccionEnForm = "SetUsuario"
StartActivity(frmUsuario)
And use this public var in frmUsuario activity.
You can returns values as this thecnic.
Be carefour with this PUBLIC var between other calls.
ALWAYS put somenthig in other calls to this Activity
frmUsuario.AccionEnForm = "nothingtodo"
StartActivity(frmUsuario)