mt6735 AlarmClock铃声列表如何添加“默认铃声”选项
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
AlARMClock铃声列表如何添加“默认铃声”选项
[SOLUTION]
1.AlarmClock.java的launchRingTonePicker()中
...
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, true); //修改false为true
...
2.RingtonePickerActivity.java的run()中
...
if (mSampleRingtonePos == mDefaultRingtonePos) {
if (mDefaultRingtone == null) {
mDefaultRingtone = RingtoneManager.getRingtone(this, mUriForDefaultItem);
}
ringtone = mDefaultRingtone;
ringtone.setStreamType(mType);//添加此行
..
AlARMClock铃声列表如何添加“默认铃声”选项
[SOLUTION]
1.AlarmClock.java的launchRingTonePicker()中
...
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, true); //修改false为true
...
2.RingtonePickerActivity.java的run()中
...
if (mSampleRingtonePos == mDefaultRingtonePos) {
if (mDefaultRingtone == null) {
mDefaultRingtone = RingtoneManager.getRingtone(this, mUriForDefaultItem);
}
ringtone = mDefaultRingtone;
ringtone.setStreamType(mType);//添加此行
..