android提示音
来源:互联网 发布:libreoffice软件 编辑:程序博客网 时间:2024/05/18 08:07
Aroidnd提示音
一、系统自带
// TYPE_RINGTONE 电话铃// TYPE_NOTIFICATION 提示音(响一下)// TYPE_ALARM 闹钟音Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);final Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification);r.play();
二、自定义声音
RingtoneManager manager = new RingtoneManager(this);manager.setType(RingtoneManager.TYPE_NOTIFICATION);//自定义声音 音频文件放在应用的ram文件夹中Uri uri = Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.call);Ringtone r = manager.getRingtone(ServiceKDS.this, uri);r.play();
2 0
- android 播放提示音
- android创建提示音
- 【Android】播放提示音
- Android 触摸提示音
- Android 播放提示音
- android提示音
- 【Android】开启手机提示音
- android notification设置提示音
- Android获取系统提示音
- Android仿微信新消息提示音
- Android 播放系统提示音
- 简单播放系统提示音 android
- android 选择系统默认提示音
- android 自定义notification的提示音
- Android打开关闭触摸提示音
- android播放提示音工具类(SoundConfigUtils)
- Android 情景模式提示音默认修改
- Android 播放提示音 MediaPlayer 简单暴力
- 计算机网络(谢希仁第六版)3-24和3-25整理
- request.getSession(false)和request.getSession(true)用法区别
- linux下串口编程简单实例
- adb server version (31) doesn’t match this client (36); killing… * daemon started successfully *
- 友盟分享简单集成和常见问题解决
- android提示音
- 383. Ransom Note#1(Done)
- Android和JAVA面试题相关资料
- 机器学习笔记(一)绪论
- 深度学习数据库
- Linux环境C语言把整数转换成字符串再保存该字符串数据为文本
- 自由扩展——Builder模式
- vs2010使用boost库,安装
- ZCMU—1400