[android-developers] Re: Ringtone.isPlaying problem

2008-12-02 Thread Selmi

i am in shame once again, yes it was my bug :-( when i looked into
code after few days it was so obvious...

On 1. Dec., 18:06 h., Dave Sparks [EMAIL PROTECTED] wrote:
 The phone application uses the RingtoneManager to play ringtones, so
 it definitely works in that application. That doesn't mean it doesn't
 have a bug, but I would suggest you check your code first.

 On Nov 29, 3:41 pm, Selmi [EMAIL PROTECTED] wrote:

  hi, i hope there is someone who has some experience with ringtones

  in short, i open RingtoneManager and i choose ringtone from it using:

  mRingtone=mRingtoneManager.getRingtone(position);
  mRingtone.play();

  after some time i make following test:
  if(mRingtone!=null  mRingtone.isPlaying())
  {
          mRingtone.stop();
          mRingtone=null;}

  else
  {
    some action

  }

  problem is that mRingtone.isPlaying() always returns false, even if
  sound is still played!
  is it some problem in api, or did i misunderstood anything?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ringtone.isPlaying problem

2008-12-01 Thread Dave Sparks

The phone application uses the RingtoneManager to play ringtones, so
it definitely works in that application. That doesn't mean it doesn't
have a bug, but I would suggest you check your code first.

On Nov 29, 3:41 pm, Selmi [EMAIL PROTECTED] wrote:
 hi, i hope there is someone who has some experience with ringtones

 in short, i open RingtoneManager and i choose ringtone from it using:

 mRingtone=mRingtoneManager.getRingtone(position);
 mRingtone.play();

 after some time i make following test:
 if(mRingtone!=null  mRingtone.isPlaying())
 {
 mRingtone.stop();
 mRingtone=null;}

 else
 {
   some action

 }

 problem is that mRingtone.isPlaying() always returns false, even if
 sound is still played!
 is it some problem in api, or did i misunderstood anything?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---