This site is driven by two keys, like the machine it came from. Reading: j and k scroll, d and u move half a page, gg goes to the top, G to the bottom, H and L switch windows, ? opens the help. Space is the Neovim leader and handles content: Space then h home, r research, p projects, g gear, a about, / tags, or Space then a digit to jump to that window. Home is the tmux prefix and handles windows: Home then c opens a terminal, Home then & closes a window, Home then space goes to the next one. While focus is on the keyboard, h j k l move between keys and Enter opens one.

ResearchR AboutA Gear — G for gear — keyboard, terminal, editor, homelab.G
    ProjectsP Tags — / as in vim: search./
    ×
    Menu

    A Plane-Geometry Android App (CLI-friendly)

    A simple Android app built for educational purposes. Calculates the area and perimeter of basic 2D shapes like squares, rectangles, and triangles.

    A simple Android app built for educational purposes. It calculates the area and perimeter of basic 2D shapes — squares, rectangles, and triangles.

    This project is designed to be built, run, and documented entirely from the command line — no Android Studio required.

    Features

    • ✍️ Simple UI defined in XML layouts
    • ⚙️ CLI workflow for build, install, run, and screenshot capture via scripts
    • 📸 Auto-screenshot source code using carbon-now-cli

    Project Structure

    Only the folders relevant to day-to-day work are shown below.

    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 Workflow

    Build APK

    ./gradlew assembleDebug

    Install to emulator or 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

    Capturing Code Screenshots

    1. Install the CLI tool

    npm install -g carbon-now-cli

    2. Run the helper script

    ./generate_screenshots.sh

    The script will:

    • Copy all .java, .kt, and .xml files into screenshots/
    • Generate syntax-highlighted PNG screenshots from the .kt and .java sources

    Output structure

    Once the script finishes, you’ll find:

    screenshots/
    ├── com/ubl/tugas_mp/MainActivity.kt
    ├── com/ubl/tugas_mp/MainActivity.png
    └── res/layout/activity_main.xml

    Author

    FieldValue
    NameAris Jirat Kurniawan
    Student ID2311510438
    UniversityInformation Technology, Jakarta
    CourseMobile Programming

    Next Steps

    A few possible directions for this project:

    • Add custom CLI commands like make run or make screenshot
    • Wrap the workflow into a Makefile or shell alias helpers
    • Generate a .zip or .tar.gz archive ready for submission
    id en
    rss gh in