I use SeekBar for setting volume. I do the following:
- I get current volume by
getStreamVolume()and pass it toSeekBarelement bysetProgress(). - I listen messages from the
SeekBarelement byonStopTrackingTouch()and set volume bysetStreamVolume(). It works.
But user can change volume by hardware volume controls. I'd like to catch it and change SeekBar pointer position appropriately. How can I do it?