Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old March 5th, 2010, 12:41 PM   #1 (permalink)
New Member
 
Join Date: Feb 2010
Posts: 8
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default set as ringtones

The ”sounds” are in the app, and I can download them to my sdcard when I select "set as ringtones, and then find them in the folder sdcard/media/ audio/ringtones/.*My problem is that they do not "set" themselves automatically as ringtones - I have to go into the folder and select manually. Why do they not "set" themselves automatically ?

Thank you//

String path = "/sdcard/media/audio/ringtones/";

ContentValues values = new ContentValues();
values.put(MediaStore.MediaColumns.DATA, k.getAbsolutePath());
values.put(MediaStore.MediaColumns.TITLE, "abc01");
values.put(MediaStore.MediaColumns.MIME_TYPE, "sound23/ogg");
values.put(MediaStore.Audio.Media.ARTIST, "cssounds ");
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, false);

cocacolacowboys is offline  
Reply With Quote
Sponsors
Old March 5th, 2010, 01:02 PM   #2 (permalink)
New Member
 
Join Date: Feb 2010
Posts: 8
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe I need to explain that the app is my own app. I made a soundboard, and when you longpress the "soundbutton" you are allowed to "set as ringtones"....
cocacolacowboys is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I put my custom mp3 ringtones in the same place where the default ringtones are located? heyjoojoo Eris - Support and Troubleshooting 5 December 2nd, 2011 05:45 AM
Adding new ringtones to ringtones folder Elementi T-Mobile G1 5 April 26th, 2011 04:01 PM
Ringtones, Notification and Alarm ringtones randomly changing Swingchop Android Applications 6 April 9th, 2011 05:58 PM
"Notification Ringtones" no longer shows my custom ringtones? jbhumph Droid X - Support and Troubleshooting 0 July 16th, 2010 08:40 PM
Ringtones: Great app for ringtones ckochinsky125 Application Reviews 1 June 11th, 2010 08:03 PM



All times are GMT -5. The time now is 08:29 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo


SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.