java - Store stream volume and restore it after service -


i have android app changes users ringer preference or notification volume when music playing.

is there way can store current volume settings across streams , restore when service killed?

i used getstreamvolume(); volume , stored value until service killed. after service killed used setstreamvolume(); return volume stored setting.

android reference - getstreamvolume();


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -