Android Question How to store EditBoxes' s values From activity Module "A" to a List in Activity Module "B"?

Daniel44

Active Member
Licensed User
Hi everyone!

I have some EditBoxes and Spinners with some values and a button called "Send". What I'd like to do is to send that values to a list (or map) which is in another activity Module as Public List . Is it possible? Thank you in advance!
 

JohnC

Expert
Licensed User
Longtime User
In Code Modules, you can place variables in the Process_Globals that can be used from anywhere:

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
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
code modules and activities that are part of the same app.
when you say something
in another activity Module as Public List
, you do mean part of the same app, right? otherwise, it gets a little tricky.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Some ideas:

- If you have the public list in the starter service, you can add in activity_pause the values in your list, and read them in your new activity.
- You can save them in kvs the same way above.
- You can use CallSubDelayed using an array with the edittext values as parameter
- You can use a panel to show the new layout, instead a new activity.
 
Upvote 0

Daniel44

Active Member
Licensed User
Some ideas:

- If you have the public list in the starter service, you can add in activity_pause the values in your list, and read them in your new activity.
- You can save them in kvs the same way above.
- You can use CallSubDelayed using an array with the edittext values as parameter
- You can use a panel to show the new layout, instead a new activity.
Hey José thank you
 
Upvote 0
Top