This is a simple Click Counter app and my starting point into Android Development using Java. The app displays a number that increases each time a button is clicked, with an option to reset the count.
- Clean and minimal UI
- Increment counter with a single tap
- Reset button to clear the count
- Built using Java
- Log events and check using LogCat the inner activity and debugging.
- Android Studio
- Java
- XML Layouts
app/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── pt/pedrorocha/android/clickcounter/
│ │ │ └── MainActivity.java
│ │ ├── res/
│ │ │ ├── layout/
│ │ │ │ └── activity_main.xml
│ │ │ └── values/
│ │ │ └── strings.xml
│ │ └── AndroidManifest.xml
- Set up a basic Android project in Java
- Work with buttons,
TextView, andonClickListeners - Using resources and string values manipulations
- Learn how to update UI elements programmatically
- Clone the repository:
git clone https://github.com/PedroRocha84/android-java-click-counter.git
- Open the project in Android Studio
- Launch an emulator or connect a device
- Click Run (Shift + F10)