Saving changes in Activity after going to another Activity
<p>So I have a <code>Button</code> in <code>FirstActivity.java</code> which when you press leads you to a second activity: <code>SecondActivity.java</code>, which has another button <code>BackButton</code> that leads you back to <code>FirstActivity.java</code>. The code in the first activity allows you to change the layout according to different conditions. Is there a way that if the layout of <code>FirstActivity.java</code> is changed, you press the <code>Button</code> to go to the second activity, then when you press the <code>BackButton</code> to go back to <code>FirstActivity.java</code>, the layout changes will be saved in the first activity?</p>