In my activity, some things happen in the background thread that starts in Activity_1. Processing the background thread takes some time, and I want to notify the user when he is done using AlertDialog . However, the user can be changed to Activity_2 or Activity_3 in the meantime, and I would like to pop up AlertDialog always in the current Activity.
Any idea how to implement this?
android multithreading background dialog
znq
source share