开发者

Android Ringtone change intent

开发者 https://www.devze.com 2023-02-08 10:50 出处:网络
I would like to know whether there is an intent(like \"android.intent.action.WALLPAPER_CHANGED\"-notifies when a wallpaper has been changed)that would notify my broadcast receiver when a ringtone has

I would like to know whether there is an intent(like "android.intent.action.WALLPAPER_CHANGED"-notifies when a wallpaper has been changed) that would notify my broadcast receiver when a ringtone has bee开发者_运维知识库n changed or a when a new ringtone has been set.

If there isn't Is there any other way to notify my BroadcastReceiver that the ringtone has been changed


There's no intent for something like "RINGTONE_CHANGED":
http://developer.android.com/reference/android/content/Intent.html

I wonder if that's possible without hacking into the Android-system, especially as a change of ringtones will not always mean the the "system"-ringtone has been changed (as with the wallpaper), e.g. you can change a ringtone just for one contact ... so as there's no event you can connect to, I would guess, the answer is: no.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号