I have two activities for a drawing app I am making, let's call them A and B. Activity A is the canvas the user draws on, and thus will always be active so it does not lose its state. Activity B is activated when a button on A is pressed and opens a menu to change the drawing colour. I want to be able to click a button on B and have it send the colour value of the button in B to the existing A to update the colour, but haven't found any way to be able to do that.
I know it should be done in the onClick for the buttons, but other than that I don't have any clue.
Alternatively, is there a way to save the state of A somewhere and then start a new instance of A and reload it with the same drawings on it but updated drawing colour?