如何在执​​行中的Andr​​oid某些动画播放声音声音、动画、如何在、oid

2023-09-06 15:53:51 作者:encounter

我提出的应用,该应用不某些处理5秒钟,然后给予的结果。那段时间我想申请一些动画并播放一些声音,以避免用户闲置看发生了什么。

I am making an App which does certain processing for 5 seconds and then giving a result. During that time I want to apply some Animation and play some sound to avoid user to sit idle watching whats happening.

我已经申请了动画以及需要如何发挥声音那个特定的时间一定的帮助。我有5秒钟一个声音文件。

I have applied the Animation and need some help in how to play sound for that particular time. I have one sound file for 5 seconds.

任何想法都非常欢迎。

推荐答案

尝试阅读的文档:

http://developer.android.com/reference/android/media/ SoundPool.html

此处理操作系统上播放声音。

This handles playing sounds on the OS.