Jave + Kotlin : Picking State Saver library
Saving State was so cumbersome in Android. But there’s a library introduced that makes life so easy when developing your App in Java. It is Icepick. Mainly your variable just need to add
@state annotation and couple with some generic save and restore code, you’re done.