I’m developing an application where I want to find out what volume the user had when he started my app from a method thats not onCreate(). I have created an int based on the current volume inside my onCreate but since it can’t return anything I don’t know how to get my int from there. It’s very important that I use the int I generated at in onCreate().
How can this be done?
@pawegio right, if you want to use same vol level what user set up, use preferences.
This is how to:
WRITE into preferences
READ from preferences