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)