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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -