• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Saving state of a custom view

moap

Newbie
Hi all,

I have a custom view which is my game scene.When user lock screen with power button or something else it restarts my view. I tried android:configChanges but it seems to work on emulator but not on real device. What is the correct way of saving my view's state. It's not something like save an int in a bundle and restore it for now 1500 line of code what i'm talking about.
 
Back
Top Bottom