Getter for the current Default Notification Ringtone URI. - Android Android OS

Android examples for Android OS:Notification

Description

Getter for the current Default Notification Ringtone URI.

Demo Code


//package com.java2s;
import android.content.Context;

import android.media.RingtoneManager;
import android.net.Uri;

public class Main {
    /**//from   w ww .ja  v  a2 s .c  o  m
     * Getter for the current Default Notification Ringtone URI.
     * @param ctx
     * @return
     */
    public static Uri getDefaultNotificationRingtoneUri(Context ctx) {
        return RingtoneManager.getActualDefaultRingtoneUri(ctx,
                RingtoneManager.TYPE_NOTIFICATION);
    }
}

Related Tutorials