开发者

Play audio before finish();

I have method playAudio(); I want execute this method, after call f开发者_C百科inish() 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...).


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜