This is a simple Android application that displays a counter on the main screen in a TextView. The counter's initial value is set to 0, and each time the TextView receives clicks, the counter is incremented. The unique feature of this app is that even if the user rotates the screen, the counter value remains intact.
- Interactive counter displayed using a TextView.
- Increment of the counter upon TextView clicks.
- Persistent counter value even when the screen is rotated.
- Programming Language: [Java]
- Platform: [Android]
- Integrated Development Environment (IDE): [Android Studio]
- Clone this repository:
[git clone https://github.com/your-username/click-counter-app.git](https://github.com/YeffersonSilva/Click-CounterApp.git)
- Open the project in Android Studio.
- Run the application on an Android emulator or device.
- Click on the TextView to increment the counter.
- Rotate the screen to observe the persistent counter value.
The persistent counter value is maintained using the Android lifecycle methods and saving instance state. This ensures that even when the screen orientation changes, the counter value is not lost.
Contributions are welcome! If you have any suggestions, encounter issues, or want to improve the app, feel free to open an issue or submit a pull request.
Feel free to fork and modify the project as needed.