get Default Ringtone - Android Phone

Android examples for Phone:Sound

Description

get Default Ringtone

Demo Code


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

import android.media.Ringtone;
import android.media.RingtoneManager;

public class Main {
    public static Ringtone getDefaultRingtone(Context context, int type) {
        return RingtoneManager.getRingtone(context,
                RingtoneManager.getActualDefaultRingtoneUri(context, type));
    }//from  www .ja v  a  2  s.  c o m
}

Related Tutorials