Ringer volume question

rfresh

Well-Known Member
Licensed User
Longtime User
When I run this code, I see the max ringer vol is 5 but when I go into my settings and look at the ringer volume, the slider bar isn't all the way to the right indicating a max vol setting, it's only about 33%...there is plenty of room to slide it over to the right some more. Why is the getmaxvolume only returning 5?

B4X:
   p.SetRingerMode(p.RINGER_NORMAL)
   mPhoneVolume = p.GetVolume(p.VOLUME_RING)
   Log("prev mPhoneVolume:" & mPhoneVolume)
   mPhoneMaxVolume = p.GetMaxVolume (p.VOLUME_RING)
   Log("prev mPhoneMaxVolume:" & mPhoneVolume)
   p.SetVolume (p.RINGER_NORMAL, 5, False)
   Log("Setting max ringer volume")   
   mPhoneMaxVolume = p.GetMaxVolume (p.VOLUME_RING)
   Log("after mPhoneMaxVolume:" & mPhoneVolume)
 

Attachments

  • 0.jpg
    0.jpg
    24 KB · Views: 168

rfresh

Well-Known Member
Licensed User
Longtime User
Yes that worked fine. Thanks.

On my Droid3 phone, the max volume value is 15, is that value the same on all Android phones or should I set my seekbar max value dynamically in the create first time sub?
 
Upvote 0
Top