๐ Android Mobile Programming App (CLI-friendly)
A simple Android app built for educational purposes. Calculates area and perimeter of basic shapes such as square, rectangle, and triangle.
android mobile kotlin
๐ Android Mobile Programming App (CLI-friendly)
A simple Android app built for educational purposes. Calculates area and perimeter of basic shapes such as square, rectangle, and triangle.
This project is designed to be built, run, and documented fully via command line (CLI) โ no Android Studio required.
๐ Features
- โ๏ธ Simple UI in XML layouts
- โ๏ธ CLI support: Build, Install, Run, and Capture screenshots using scripts
- ๐ธ Auto-screenshot source code with
carbon-now-cli
๐งพ Project Structure (Important Folders Only)
app/
โโโ src/
โ โโโ main/
โ โโโ java/ # Source code (.kt / .java)
โ โโโ res/ # Layouts, Drawables, etc.
โ โโโ AndroidManifest.xml
โโโ build.gradle # App-level Gradle file
gradle/
โโโ wrapper/ # Gradle wrapper
gradlew, gradlew\.bat # Wrapper scripts
build.gradle # Root-level Gradle
settings.gradle
๐ฅ CLI Usage Guide
โ Build APK
./gradlew assembleDebug
โ Install APK to Emulator / Device
adb install -r app/build/outputs/apk/debug/app-debug.apk
โ Run the App
adb shell monkey -p com.ubl.tugas_mp -c android.intent.category.LAUNCHER 1
โ Uninstall the App
adb uninstall com.ubl.tugas_mp
๐ธ Take Screenshot of Code
Install CLI tool
npm install -g carbon-now-cli
Run the helper script
./generate_screenshots.sh
This will:
- Copy all
.java,.kt,.xmlfiles toscreenshots/ - Generate syntax-highlighted PNG screenshots of
.kt/.javafiles
๐ Output (after script)
screenshots/
โโโ com/ubl/tugas_mp/MainActivity.kt
โโโ com/ubl/tugas_mp/MainActivity.png
โโโ res/layout/activity_main.xml
๐ค Author
Aris Kurniawan 2311510438 โ Universitas Budi Luhur Course: Mobile Programming
Let me know if you want to:
- Add custom CLI commands (like
make run,make screenshot) - Turn it into a Makefile or alias helper
- Generate
.zipor.tar.gzfor submission