DEV Community

Uğur KILCI 😈
Uğur KILCI 😈

Posted on • Edited on

Android Studio Alarm Clock MP3 Song

Android Studio Alarm Clock MP3 Song

0

I'm making an alarm clock. I have the codes below. However, the notification music is working. I want it to play the mp3 file I set. What should I do?

@Override
    public void onReceive(Context context, Intent intent)
    {
        Toast.makeText(context, "Alarm! Wake up! Wake up!", Toast.LENGTH_LONG).show();
        Uri alarmUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);
        if

Top comments (0)