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.
 
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
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: Copy
ShowActivity
Wait For Finish
In the second activity then:
B4X: Copy
Private Sub Closed
CallSubDelayed(YourFirstActivity,"Finish")
End Sub
 
Upvote 0
Back
Top