How do you pass values of variable between activities?

nemethv

Member
Licensed User
Longtime User
Hello

I was wondering how/if it is possible to pass values and variable between activities.
For example in one activity, the user does something (like clicks on a list element) that creates:

B4X:
Sub LineList_ItemClick (Position As Int, Value As Object)
   If xy = False Then 
      'do stuff
   Else xy = True   Then 
      StartActivity(NewActivity) ' how do I pass Position and Value to NewActivity in a way that Subs in NewActivity can pick it up?
   End If
End Sub
 
Top