80,472
社区成员




public static void setRingForOPhone(ContentResolver cr, Uri uri) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
Class cls = Class.forName("android.provider.Settings$Profile");
Method method = cls.getMethod("setRingTone", new Class[] {ContentResolver.class, Uri.class});
method.invoke(cls, new Object[] {cr, uri});
}