Using raw resource sound file as Ringtone

by Maur铆cio » Mon, 14 Dec 2009 05:32:37 GMT


Sponsored Links
 I have a problem setting a ringtone from a resource in my app:

Uri uri = Uri.parse("android.resource://com.package.app/" +
R.raw.sound1);
RingtoneManager.setActualDefaultRingtoneUri(this,
RingtoneManager.TYPE_RINGTONE, uri);

I've noticed also some people had the same problem but got no answers.
Do any of you guys have any idea of how making this work? (without
having to copy the file to the sdcard)

Cheers

--



Using raw resource sound file as Ringtone

by Open » Fri, 18 Dec 2009 07:31:36 GMT


 I was able to set a ringtone for my app like this in Android 1.6, but
it does not seem to work in 2.0.




--


Sponsored Links


Other Threads

1. Can an AppWidget's RemoteViews be edited/created dynamically, or only from XML?

I suspect the answer is no, but it only seems possible at the moment
to update an AppWidget via a RemoteViews object which is inflated from
a static XML file.

Is there any way to build a RemoteViews object on the fly, or edit the
layout of one that is already there?

The requirement is that I dont know until runtime exactly how many
ImageViews I want to display in my AppWidget.

Currently I am setting all the ImageViews I may need in the layout XML
file as invisible and then just making the ones I want visible, but am
I then limited to what I have in the XML file to start with. It would
be far more convenient to be able to just add the ones I need on the
fly, and set their properties when updating.

Anyone know if there is a way to do that?

Thanks
James

-- 

2. Help: foursquare dan pasar malam

Mau nanya,
1. Foursquare kok ga ke detect my location ya?

2. Pasar malam . Bisa sharing info ga? Linknya?

Maaf. Masih newbie. Br upgrade ke eclair :)

Sent from my Spicadroid
Powered by AXIS

-- 
"Indonesian Android Community [id-android]" 

3. extending voice commands

4. CheckBoxs' labels are not updated after locale is changed

5. pMessenger

6. cara register di cnectd (",

7. Control file and network acces