A native Android application where the user attempts to guess a randomly generated number. While the game logic is simple, the project was built to demonstrate robust Android Lifecycle handling.
- Lifecycle Management:
- Implements
onSaveInstanceStateto preserve the secret number during configuration changes (screen rotation). - Prevents the frustrating user experience of the game resetting itself accidentally.
- Implements
- JSON Serialization: Uses the Gson library to serialize the Game Object state for storage.
- View Binding: Uses Android Jetpack ViewBinding for type-safe interaction with UI elements.
- Language: Java, Android SDK
- Libraries: Google Gson
- Architecture: Separation of Model and UI logic.