android play notification no sound sometime -


OK, some of my customs say that notification does not sound when my app receives some time Playing GCM push message ... (The phone is Samsung Galaxy S3 and I'm pretty sure the phone is in ring mode, not in silent or vibrational mode)

I thought they did not select any file The notification's sound, so I change my code to play only the default sound.

Here's my code to run the default notification sound:

  ringtone r = faucet; Try {ur uri = ringtone manager .get default url (ringtone manager tppnntit); R = ringtone manager .getRingtone (getApplicationContext (), Yuri); R.play (); } Hold (exception e) {e.printStackTrace ();}   

So I get their S3, and see what's going on.

However, no error message, no error stack was dropped, it was not just the default notification sound ...

I had tried Android device:

  • Acer A100 (7 "Tablet)
  • Samsung Note 2
  • 5 tips above are notifting the sound of the sound. > Some time ......

    Do not even think?

    Still not aware that this problem due to Samsung's Android phone (and HTC

      pending content entry = pending IT activation (this, 0, notification intent, 0) ); Notification Notification = New Notification (RDVAB.Notfoif, Ticker Text, IO); if (Allow to play nite) {Notification.defaults | = Notification.DEFAULT_SOUND;} If (Allow Vibrate) {notification.defaults | = Notice DEFAULT_VIBRATE;}   

    So I think that I do not have my own notification sound attached to my app for several times ...

    Samsung, great, Just great ...... $ and $ # ^% ^ & amp; $ ^ And amp% @


    EDIT: 2013/03/29 10:05 AM GMT + 8

    The above code is still the same issue in the Samsung S3, But the above other device lists, and even Samsung Note 2 works fine.

    SUNDES samsung s3!

  • Comments

    Popular posts from this blog

    excel vba - How to delete Solver(SOLVER.XLAM) code -

    github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

    ios - Replace text in UITextView run slowly -