Skip to content
didiergarciaPublic

About

Android app that demonstrates how threading works in Java-based Android development.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

atx

Android Thread Explorer — Visualize Threading Behavior on Android (Pre-Kotlin)

atx is an educational Android app that demonstrates how threading works in Java-based Android development. It allows users to spawn different types of threads with adjustable priorities and observe how they behave under various configurations. Originally built before Kotlin became the Android standard, this app is ideal for understanding classic Java threading on Android.


📱 Features

  • 🚦 Adjustable Thread Priority: Use a SeekBar to modify thread priority in real time.
  • 🧵 Thread Type Selection: Choose from three built-in thread behaviors:
    • SleepyThread: simulates I/O or blocking behavior
    • WorkyThread: performs simple computation
    • NetworkyThread: simulates network access
  • ✅ Thread Kick-Start Option: Toggle enhanced thread startup behavior via a checkbox.
  • 🌛 Interactive UI: Easily control and visualize threading concepts through a simple interface.

🧠 Educational Use Cases

  • Learn how Java threads are managed on Android.
  • Understand how priority affects thread scheduling.
  • Observe thread execution behavior under simulated workloads.
  • Great for classroom demos or self-study in classic Android dev environments.

🧰 Tech Stack

  • Java (pre-Kotlin Android)
  • Android SDK (pre-AndroidX) using android.support.v7.app.AppCompatActivity
  • ButterKnife for view binding and event handling
  • Custom thread classes (SleepyThread, WorkyThread, NetworkyThread)
  • Logcat output for thread lifecycle insights

✨ Getting Started

Prerequisites

  • Android Studio (3.x+)
  • Android SDK (API 23–28 recommended)
  • Java 8

Build & Run

  1. Clone the repo:
    git clone https://github.com/didiergarcia/atx.git
    cd atx
  2. Open in Android Studio.
  3. Build and run on an emulator or device.

🧪 Sample Interaction

  • Select a thread type (e.g., Sleepy).
  • Adjust the thread priority via the slider.
  • Toggle the "Use Thread Kick-Start" checkbox.
  • Tap Start Thread to launch the selected thread.
  • Observe Logcat for execution details.

📸 Screenshot (optional)

(Insert UI screenshot here to showcase the thread control interface)


⚒ Future Ideas

  • Port to Kotlin + AndroidX
  • Add coroutine-based threading for comparison
  • Include thread performance metrics or visual indicators

📄 License

MIT © Didier Garcia
Built for educational and demo purposes.

About

Android app that demonstrates how threading works in Java-based Android development.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages