I'm making a dice game and I want to save the image View when I rotate the screen.
I have tried to save the value and then re-establish it. This worked but when I wanted to download the picture but the value I saved it does not work.
// How do I save this?
public void setDiceOne() {
getDiceOne = new DiceAll(diceOne);
getDiceOne.getRandomNumber();
getDiceOne.getImageWhite();
}
public void setDiceTwo() {
getDiceTwo = new DiceAll(diceTwo);
getDiceTwo.getRandomNumber();
getDiceTwo.getImageWhite();
}