diff --git a/src/com/android/messaging/datamodel/BugleNotifications.java b/src/com/android/messaging/datamodel/BugleNotifications.java index 3faee85..6f8ba84 100644 --- a/src/com/android/messaging/datamodel/BugleNotifications.java +++ b/src/com/android/messaging/datamodel/BugleNotifications.java @@ -190,6 +190,15 @@ public class BugleNotifications { } } + /** + * Play a sound to notify arrival of a class 0 message + * + */ + public static void playClassZeroNotification() { + final Uri ringtoneUri = RingtoneUtil.getNotificationRingtoneUri(null); + playObservableConversationNotificationSound(ringtoneUri); + } + /** * Cancel all notifications of a certain type. * diff --git a/src/com/android/messaging/ui/ClassZeroActivity.java b/src/com/android/messaging/ui/ClassZeroActivity.java index 129ec19..ccb15a0 100644 --- a/src/com/android/messaging/ui/ClassZeroActivity.java +++ b/src/com/android/messaging/ui/ClassZeroActivity.java @@ -33,6 +33,7 @@ import android.view.Window; import com.android.messaging.R; import com.android.messaging.datamodel.action.ReceiveSmsMessageAction; +import com.android.messaging.datamodel.BugleNotifications; import com.android.messaging.util.Assert; import java.util.ArrayList; @@ -88,6 +89,8 @@ public class ClassZeroActivity extends Activity { return false; } mMessageQueue.add(messageValues); + // Show a notification to let the user know a new message has arrived + BugleNotifications.playClassZeroNotification(); return true; }