add in flags to get vibration and sound with notifications. (Untested

on device.)  Will want to add prefs to disable these.
This commit is contained in:
Andy2 2011-02-22 18:29:53 -08:00
parent bf567a131a
commit dbb69bfff5

View file

@ -81,7 +81,9 @@ public class RelayService extends Service {
Notification notification =
new Notification( R.drawable.icon48x48, title,
System.currentTimeMillis() );
notification.flags |= Notification.FLAG_AUTO_CANCEL;
notification.flags |=
Notification.FLAG_AUTO_CANCEL | Notification.DEFAULT_SOUND;
notification.flags |= Notification.DEFAULT_VIBRATE;
notification.
setLatestEventInfo( this, title,