Android Question Execute a process in a different activity and know that it is finished.

vecino

Well-Known Member
Licensed User
Longtime User
Hello, from an activity you call another one that performs a process and when it finishes it closes.
Is there any way for the calling activity to know that the other one finished the process it was doing?
Thank you very much.
 

Johan Schoeman

Expert
Licensed User
Longtime User
Hello, from an activity you call another one that performs a process and when it finishes it closes.
Is there any way for the calling activity to know that the other one finished the process it was doing?
Thank you very much.
I seem to recall it can be done with a Public global variable....
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Is there any way for the calling activity to know that the other one finished the process it was doing?
Yes.
Something like this:
B4X:
ShowActivity
Wait For Finish
In the second activity then:
B4X:
Private Sub Closed
CallSubDelayed(YourFirstActivity,"Finish")
End Sub
 
Upvote 0
Top