Hi. Did you solve this problem?

I think your uri wasn't correct as the filename
"content://settings/system/
ringtone" is not valid?



On 9 Mai, 09:13, Yan Shi <[email protected]> wrote:
> Has anyone got this problem?
>
> Need help.
>
> On May 9, 11:01 am, Yan Shi <[email protected]> wrote:
>
> > In 1.5, I can't setringtonefor my own app'snotificationand neither
> > can I get anynotificationsound.
>
> > I always get this:
> > E/MediaPlayerService(  542): Couldn't open fd for 
> > content://settings/system/ring
> > tone
> > E/MediaPlayer(  574): Unable to to create media player
> > W/NotificationService(  574): error loading sound for 
> > content://settings/system/
> >ringtone
> > W/NotificationService(  574): java.io.IOException: setDataSource
> > failed.: status
> > =0x80000000
> > W/NotificationService(  574):   at
> > android.media.MediaPlayer.setDataSource(Nativ
> > e Method)
> > W/NotificationService(  574):   at
> > android.media.MediaPlayer.setDataSource(Media
> > Player.java:610)
> > W/NotificationService(  574):   at android.media.AsyncPlayer$Thread.run
> > (AsyncPla
> > yer.java:76)
>
> > And when I go to APIDemos->App->Notification->Status Bar and click
> > "Sound" button, I got the same error.
>
> > I am using Eclipse in Vista 32 with 1.5 R1. So what's wrong and how
> > can I do this?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to