Re: [android-developers] Setting Ringtones

2011-06-11 Thread dan raaka
which device... this will help to find it ..
$ adb shell getprop | grep -i fingerprint

-Dan


On Thu, Jun 9, 2011 at 12:24 PM, MCON Dev mcon...@gmail.com wrote:

 ContentValues values = new ContentValues();
values.put(MediaStore.MediaColumns.DATA, resourcePath);
values.put(MediaStore.MediaColumns.TITLE, (String) ((Button)
 v).getText());
values.put(MediaStore.MediaColumns.MIME_TYPE, audio/mp3);
values.put(MediaStore.Audio.Media.IS_RINGTONE, true);
values.put(MediaStore.Audio.Media.IS_NOTIFICATION, false);
values.put(MediaStore.Audio.Media.IS_ALARM, false);
values.put(MediaStore.Audio.Media.IS_MUSIC, true);

// Insert it into the database
Uri uri =
 MediaStore.Audio.Media.getContentUriForPath(resourcePath);
RingtoneManager.setActualDefaultRingtoneUri(this,
 RingtoneManager.TYPE_RINGTONE, uri);

 I set a mp3 ringtone (that plays well on my ubuntu and windows) on
 samsung galaxy android phone, but it gives a weird sound instead of
 the mp3.

 Conny

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Setting Ringtones

2011-06-09 Thread MCON Dev
ContentValues values = new ContentValues();
values.put(MediaStore.MediaColumns.DATA, resourcePath);
values.put(MediaStore.MediaColumns.TITLE, (String) ((Button) 
v).getText());
values.put(MediaStore.MediaColumns.MIME_TYPE, audio/mp3);
values.put(MediaStore.Audio.Media.IS_RINGTONE, true);
values.put(MediaStore.Audio.Media.IS_NOTIFICATION, false);
values.put(MediaStore.Audio.Media.IS_ALARM, false);
values.put(MediaStore.Audio.Media.IS_MUSIC, true);

// Insert it into the database
Uri uri = 
MediaStore.Audio.Media.getContentUriForPath(resourcePath);
RingtoneManager.setActualDefaultRingtoneUri(this,
RingtoneManager.TYPE_RINGTONE, uri);

I set a mp3 ringtone (that plays well on my ubuntu and windows) on
samsung galaxy android phone, but it gives a weird sound instead of
the mp3.

Conny

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] setting ringtones from raw files

2009-06-10 Thread Josh

Ive been through all the books I purchased on android and the sdk and
I just dont get it. can anyone tell me how I can set an mp3 file that
is in the raw folder of my app as a ringtone?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---