开发者

Play sound without onClickListener

How can I play a sound in an activity without requiring the press of a button? I already know how to play the sound, but need to bypass the onClickListener. Thanks for any a开发者_如何学JAVAdvice.


You could tell the sound to play in onStart() or onResume(), which are methods of Activity inherited by your subclass.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜