我怎么用这个
Ringtone tone = RingtoneManager.getRingtone(this, Uri.parse(uri));
从通知声音中选择?这很好用,但我可以从手机铃声设置通知声音。
更新:
private void update_notifytone (String uri, boolean save) {
mNotifyTone = uri;
if (uri == null) return;
Ringtone tone = RingtoneManager.getRingtone(this, Uri.parse(uri));
if (tone != null)
mPrefNotifyTone.setSummary(tone.getTitle(this));
if (save)
update_column(ProfileModel.ProfileColumns.NOTIFYTONE, mNotifyTone);
}
谢谢