get Default Ringtone Uri - Android Phone

Android examples for Phone:Sound

Description

get Default Ringtone Uri

Demo Code


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

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

public class Main {
    public static Uri getDefaultRingtoneUri(Context context, int type) {
        return RingtoneManager.getActualDefaultRingtoneUri(context, type);
    }/*from w w  w.  j  a v  a 2 s  . c  om*/
}

Related Tutorials