Java tutorial
//package com.java2s; import android.content.Context; import android.media.RingtoneManager; public class Main { /** * Return true if the system has a system default ringtone. This is always * false for most tablets. * * @param ctx the {@link Context} * @return true or false */ public static boolean hasSystemDefaultRingtone(Context ctx, int type) { return RingtoneManager.getActualDefaultRingtoneUri(ctx, type) != null; } public static boolean hasSystemDefaultRingtone(Context ctx) { return hasSystemDefaultRingtone(ctx, RingtoneManager.TYPE_RINGTONE); } }