Skip to content
Advertisement

How to fix my onSaveInstanceState and onRestoreInstanceState?

I’m trying to save all the values & clicks from user during screen rotation, but my button click and text view isn’t working. I’ve spent so many hours trying to figure out what to write inside this method and none of them worked. The input from Select your Tip button and textView output isn’t being saved at the moment. Image of App

JavaScript

Advertisement

Answer

Is that what you need? You can add double values parsing if necessary.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement