You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality.

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.

I'm putting together a "notification profiles" patch, supporting finer-grained (per app) control of notification sounds/vibrate/lights, and grouped into profiles (meeting, silent, car etc). App control (eg Tasker) will also be supported. Think of it as "Quiet hours++". Would that interest people?

I've finished most of the framework changes, and embarking on the settings screens. Just wondered if there was any feedback before I get to far down the road.

Features so far:
- A set of profiles can be defined, eg. work, home, night, silent, meeting).
- Each profile can have a number of notification groups eg. incoming call, sms, email, gmail, other
- You can assign many apps to each group. The group is then be configured to change the notification behaviour for those apps.
- Each of lights, vibrate and sound can be configured to either: override default/app setting, suppress default/app setting (ie silent), or leave unchanged.
- Profile switching can be done manually, using a menu, or delegated to an app, for example Tasker, Locale, or a widget.
- An app will also be able to configure the profiles.

This will only work for Notifications, delivered using the NotificationManager to start with. However, the api will also allow the current profile to be queried, allowing apps such as Dialer and Skype to honour the settings. I will probably upgrade the Dialer so that incoming calls are handled, and this could also serve as a reference implementation.

There ARE api changes - this is necessary. A ProfileManager is exposed as a system service. However, much of the functionality can be contained in the ROM anyway, so it shouldn't prove to be an issue.

I know I'll certainly get use out of it, even if it doesn't get accepted.

First indications are good - handled SMS profile, overriding notifications from Handcent and Messaging.

Anyone out there who wouldn't mind putting together an icon for the settings screen? I'm rubbish at this kind of thing. Needs to fit the established style - the menu text displayed is "Profiles", maybe musical notes?

It uses the default ringtone chooser, built into the OS. To use MP3 ringtones you can either:
- Use an app which converts your MP3s to ringtones
- Use an app which replaces the default chooser (such as Handcent).

Hello Martin, now that you've made a Tasker plugin, I see how I will be able to integrate your Profile Settings into my setup. I do have a question though:

Let us say I'm in the 'Work' profile and looking at the 'GMail' app category. What function does 'Ring mode' & 'Phone ringtone' serve for this category since the dialer isn't included? I understand 'Notification mode' & 'Notification tone' & the 'Vibrate mode' & 'Lights mode'. Would the 'Ring mode' & 'Phone ringtone' settings only matter if the 'Phone' app happens to be included in the current app category? Should I just leave these two settings untouched?

Hello Martin, now that you've made a Tasker plugin, I see how I will be able to integrate your Profile Settings into my setup. I do have a question though:

Let us say I'm in the 'Work' profile and looking at the 'GMail' app category. What function does 'Ring mode' & 'Phone ringtone' serve for this category since the dialer isn't included? I understand 'Notification mode' & 'Notification tone' & the 'Vibrate mode' & 'Lights mode'. Would the 'Ring mode' & 'Phone ringtone' settings only matter if the 'Phone' app happens to be included in the current app category? Should I just leave these two settings untouched?

Yes, you are correct. The 'Ring Mode' and 'Phone Ringtone' only apply to categories which include the Phone app, or another app that might "ring", such as Skype, or another VOIP app. They are separate, as some apps might both ring and generate notifications. Eg, for the phone app, you might like a different ringtone to the sound for missed call notifications.

Yes, you are correct. The 'Ring Mode' and 'Phone Ringtone' only apply to categories which include the Phone app, or another app that might "ring", such as Skype, or another VOIP app. They are separate, as some apps might both ring and generate notifications. Eg, for the phone app, you might like a different ringtone to the sound for missed call notifications.

Thanks, I understand now.

I was running some tests, switching between profiles to see behavior of the profiles. I have added Google Voice & Google Talk to my 'SMS' app group. I had a profile that overrode the 'Notification tone' of the SMS group and this worked correctly for Google Voice & Messaging but the Google Talk app still fired its selected ringtone, not the overridden sound from the Profile.

Martin, this idea is fantastic. I am struggling a bit to get the behaviors like I want. Is there any FAQ/tutorial on the Profile settings? I thought I had it figured out but Gtalk started making noise in the middle of the night...Clearly I need to work on it more. I have purchased the Tasker plug in so I'm well on my way. Thanks for this feature it has been a sore spot with Android for me since I got my phone a year ago.