# PrototypeZ/SaveState

:icecream: Generate 'onSaveInstanceState' and 'onRestoreInstanceState' methods for your application automatically

Repository: https://github.com/PrototypeZ/SaveState
Canonical: https://ross.abutalabs.com/products/savestate
Language: Java
License Family: other
Last push: 2018-11-15T08:21:37+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3014, "days_push": 2848, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1004, forks 79 (observed 2026-09-03T02:15:07.094794+00:00)

## What it is
An Android library that automatically generates onSaveInstanceState and onRestoreInstanceState implementations via the @AutoRestore annotation. It works with Activities, Fragments, and Views through a Gradle plugin and annotation processing.

## Use cases
- eliminate boilerplate onSaveInstanceState code in Android apps
- automatically restore activity state after process death
- save and restore fragment fields with annotations
- persist view state across configuration changes
- generate instance state handling for Kotlin Android projects

## When to choose
- you maintain an Android app with lots of manual instance state saving code
- you want annotation-based automatic state persistence in Activities, Fragments, or Views
- you use Kotlin or Java with kapt and want code generation

## When to avoid
- you use Jetpack Compose or ViewModel/SavedStateHandle instead of classic instance state
- you need an actively maintained library - the project has had no releases since 2018
- your project does not use Android Gradle plugin integration

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, developer-tools
- domain: mobile-development, android-tools, developer-tools
- platform: jvm
- tags: android, annotation-processing, state-restoration, kotlin, gradle-plugin, boilerplate-elimination

## Member repositories
- PrototypeZ/SaveState (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:07.094794+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:13:42.433149+00:00, confidence not recorded.
  - readme: https://github.com/PrototypeZ/SaveState (fetched 2026-09-03T02:15:07.094794+00:00, sha 6ac3174951a3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
