By default I have set the toggle button true in an activity. Then when I move to other fragments within the same activity, the state of the toggle button doesn't change but when I move to another activity and return to the main activity, the toggle state will be set back to default.
Like the default state is true. I changed it to false in Activity A. I went to Activity B and returned to Activity A then now the toggle button will be true again. I want it to be the state the user have put. Any solutions?