Android: How to play Tone sound
来源:互联网 发布:手机淘宝店铺公告范文 编辑:程序博客网 时间:2024/05/11 23:34
/* Tone play sample code */ private void playTone() { ToneGenerator tg = mToneGenerator; if (tg != null) { tg.startTone(ToneGenerator.TONE_PROP_BEEP2); } } @Override public void onResume() { initializeTone(); } @Override public void onPause() { releaseTone(); } private void initializeTone() { // Initialize tone generator. try { mToneGenerator = new ToneGenerator( AudioManager.STREAM_SYSTEM, 50); } catch (Throwable ex) { Log.w(TAG, "Exception caught while creating tone generator: ", ex); mToneGenerator = null; } } private void releaseTone() { if (mToneGenerator != null) { mToneGenerator.release(); mToneGenerator = null; }}
- Android: How to play Tone sound
- A class to play sound on netcf in CSharp
- Android: Play sound or Mp3 file from Assets
- Sound play with stream
- C#中Play Sound
- How to install Android SDK and play with Android 2.0 in the emulator
- How to play Steam in Ubuntu
- How to play and record sounds
- How to play and record sounds
- [DirectShow] 002 - How To Play a File
- How to play a video file?
- DirectShow - How To Play a File(Windows)
- How to play animations in Cocos2d-x?
- How to play .rmvb files in Ubuntu
- How to play videos in android from assets folder or raw folder?
- A class to play sound on netcf in CSharp (二)
- play vim of how to switch to normal mode
- How to play XM Music From your own code
- 利用spring+ibatiS技术,在spring中配置多个数据源,并实现动态切换。
- sharepoint 的application pool的user不应该是server的管理员
- 斯波帝卡
- mx53 camera HAL preview(接口层)
- ubuntu 10.10 安装fcitx
- Android: How to play Tone sound
- 备忘录:jsp 使用poi 导出 excel
- MTK平台的手机启动流程
- 分区表及分区索引(2)--创建range分区
- NoSQL学习
- kernel panic No init found的一种解决办法
- set排序可以替代 multimap排序
- 分区表及分区索引(3)--创建hash分区
- 初探LBE