Problem: trying to change the default ringtone for the phone using the internal ringtones(the ones that come with the phone) using the method setActualDefaultRIngtoneUri().
Result: I always get the warning window “Sorry! The application MyApp ( ….MyApp) has stopped unexpectedly. Please try again.” Method: RingtoneManager rm = new RingtoneManager(MyApp.this); Cursor cur = rm.getCursor(); // I move the Cursor object to the notification I want to change the default to Uri newUri = rm.getRingtoneUri(cur.getInt (RingtoneManager.ID_COLUMN_INDEX)); // type is set to the constant for notifications RingtoneManager.setActualDefaultRingtoneUri(MyApp.this, RingtoneManager.TYPE_NOTIFICATION, newUri); Other Info: I created a simple button to run the program. So when the button is clicked the onClickListener() will run the code above. Thanks in advance, I've been looking at this problem for a while now. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

