0

I have method playAudio(); I want execute this method, after call finish() on Activity. When I call finish, the audio breaks.

Sample Activity A and B I want this

A (front and call B)
B (front)
B (play sound before! after finish())
A (front...).

1 Answer 1

3

You can overrride the onDestroy Method. There you can play your sound and then call the super method to finish. Reference: http://developer.android.com/reference/android/app/Activity.html#onDestroy%28%29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.