ringtone

How to vibrate the phone in sync with the ringtone?

I want to vibrate the phone in the same way as the incoming call in sync with the ringtone. How do I achieve it? ...

Android: save sound as ringtone / SQLiteConstraintException

Hi, I'm trying to save a sound as a ringtone in Android using this code. It works like a charm but will fail if I try to save a ringtone that has already been inserted. A "SQLiteConstraintException" occurs while saving but I'm not able to catch the exception, in fact, I can't catch any execption. Here's the part of my code: Uri uri =...

Android: save sound as ringtone and notification

Hi, I'm saving a sound from my app to be used as a ringtone or a notification sound. Here's part of my code, taken from this page: ContentValues values = new ContentValues(); values.put(MediaStore.MediaColumns.DATA, k.getAbsolutePath()); values.put(MediaStore.MediaColumns.TITLE, soundName); values.put(MediaStore.MediaColumns.MIME_TYPE,...

Setting ringtone on froyo

I have used solution on following topic successfully: http://stackoverflow.com/questions/1271777/how-to-set-ringtone-in-android-from-my-activity Lately I have noticed that this does not work on Froyo. It throws error on logcat: sqlite error code 19, constraint failed How could I fix this? ...