Skip to content

Commit

Permalink
Add notification sound
Browse files Browse the repository at this point in the history
  • Loading branch information
vladholubiev committed Feb 4, 2015
1 parent 4cf82aa commit 79b87fe
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.media.RingtoneManager;
import android.net.Uri;
import android.support.v4.app.NotificationCompat;

import ua.samosfator.moduleok.App;
Expand Down Expand Up @@ -33,7 +35,9 @@ private static void buildNotification() {
resultIntent,
PendingIntent.FLAG_UPDATE_CURRENT
);
Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
mNotificationBuilder.setContentIntent(resultPendingIntent);
mNotificationBuilder.setSound(alarmSound);
}

private static void pushNotification() {
Expand Down

0 comments on commit 79b87fe

Please sign in to comment.