My app needs to obtain a value from the user via a new activity.
So, what is the recommended way for a sub in Activity A to display a new activity (B), activity B prompts the user for the value and returns the value when Activity B closes?
Right now, I'm using a global variable and setting it to 0, and activity B will set the variable to a value from the user, then I detect the value changed in Activity A's Activity_Resume event. But this seems like a very ugly and error prone way to do it.
So, I am open to suggestions!
So, what is the recommended way for a sub in Activity A to display a new activity (B), activity B prompts the user for the value and returns the value when Activity B closes?
Right now, I'm using a global variable and setting it to 0, and activity B will set the variable to a value from the user, then I detect the value changed in Activity A's Activity_Resume event. But this seems like a very ugly and error prone way to do it.
So, I am open to suggestions!
Last edited: