How can the parent activity knows when the child activity has finished
Posted on 2014-11-03
I am making a sample android app. In this when we click on call button the mobile dials a number.
here is the code :
Intent phoneIntent = new Intent(Intent.ACTION_CALL);
phoneIntent.setData(Uri.parse("tel:" + Number));
This code starts a new activity which calls at the given Number. And the call finishes in about 30 seconds.
I want to execute a piece of code when the call gets finished
How can the parent activity know if the child activity (the calling one) has finished ?