# hmkcode/android architecture

> Architecture diagram of the GitHub repository hmkcode/android, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hmkcode/android
- Repository: https://github.com/hmkcode/android

## Overview

This repository is a collection of independent Android tutorial applications, not one integrated product. Each demo illustrates a user-facing Android capability, from navigation and custom views to networking, messaging, device access, and local data. The graph keeps those examples separate and shows only relationships supported by the sampled source or SOURCE INDEX. Many projects are represented by their activity path because their other implementation files were not sampled; their internal connections are therefore omitted.

Main entry points: [`android-custom-listview/src/com/hmkcode/android/MainActivity.java`](https://github.com/hmkcode/android/blob/master/android-custom-listview/src/com/hmkcode/android/MainActivity.java) (Custom list demo), [`android-pro-listview/src/com/hmkcode/android/MainActivity.java`](https://github.com/hmkcode/android/blob/master/android-pro-listview/src/com/hmkcode/android/MainActivity.java) (Grouped list demo), [`android-clean-http-async-task/src/com/hmkcode/http/HttpHandler.java`](https://github.com/hmkcode/android/blob/master/android-clean-http-async-task/src/com/hmkcode/http/HttpHandler.java) (HTTP handler), [`android-start-activity/src/com/hmkcode/android/MainActivity.java`](https://github.com/hmkcode/android/blob/master/android-start-activity/src/com/hmkcode/android/MainActivity.java) (Start activity demo)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["UI and navigation"]
  node_start_demo["Start activity demo<br/>[MainActivity.java]"]
  node_another_activity["Destination activity"]
  node_menu_demo["Menu events demo<br/>[MainActivity.java]"]
  node_options_menu["Options menu demo<br/>[MainActivity.java]"]
  node_drawer_demo["Navigation drawer demo<br/>[MainActivity.java]"]
  node_tabs_demo["Swipe tabs demo<br/>[MainActivity.java]"]
  node_custom_view_demo["Custom view demo<br/>[MainActivity.java]"]
  node_simple_view["Simple view<br/>[SimpleView.java]"]
  node_donut_demo["Donut chart demo<br/>[MainActivity.java]"]
  node_face_demo["Face drawing demo<br/>[MainActivity.java]"]
end

subgraph group_lists["Lists and rendering"]
  node_custom_list_demo["Custom list demo<br/>[MainActivity.java]"]
  node_custom_item["List item model<br/>[Item.java]"]
  node_custom_adapter["Custom list adapter<br/>[MyAdapter.java]"]
  node_pro_list_demo["Grouped list demo<br/>[MainActivity.java]"]
  node_pro_model["Grouped list model<br/>[Model.java]"]
  node_pro_adapter["Grouped list adapter<br/>[MyAdapter.java]"]
  node_recycler_demo["RecyclerView demos<br/>[MainActivity.java]"]
end

subgraph group_device["Device and media"]
  node_image_demo["Image picker demo<br/>[MainActivity.java]"]
  node_real_path["URI path resolver<br/>[RealPathUtil.java]"]
  node_camera_demo["Camera demo<br/>[MainActivity.java]"]
  node_location_demo["Current location demo<br/>[MainActivity.java]"]
  node_fused_location_demo["Fused location demo<br/>[MainActivity.java]"]
  node_connectivity_demo["Connectivity demo<br/>[MainActivity.kt]"]
end

subgraph group_network["Networking and messaging"]
  node_http_async_demo["Async HTTP demo<br/>[MainActivity.java]"]
  node_http_handler["HTTP handler<br/>[HttpHandler.java]"]
  node_async_task["Async HTTP task<br/>[AsyncHttpTask.java]"]
  node_http_coroutine_demo["Coroutine HTTP demo<br/>[MainActivity.kt]"]
  node_http_variants["HTTP variants<br/>[MainActivity.kt]"]
  node_json_get_demo["JSON GET demo<br/>[MainActivity.java]"]
  node_json_post_demo["JSON POST demo<br/>[MainActivity.java]"]
  node_gcm_server["GCM sender<br/>[App.java]"]
  node_gcm_content["GCM payload<br/>[Content.java]"]
  node_gcm_client["GCM client receiver"]
end

subgraph group_data["Data and identity"]
end

node_user(("App user"))

node_start_demo -->|"starts"| node_another_activity
node_custom_view_demo -->|"uses"| node_simple_view
node_custom_list_demo -->|"creates"| node_custom_item
node_custom_list_demo -->|"sets adapter"| node_custom_adapter
node_pro_list_demo -->|"creates"| node_pro_model
node_pro_list_demo -.->|"sets adapter"| node_pro_adapter
node_image_demo -->|"resolves path"| node_real_path
node_http_async_demo -->|"uses"| node_http_handler
node_http_handler -->|"executes"| node_async_task
node_gcm_server -->|"builds payload"| node_gcm_content

click node_start_demo "https://github.com/hmkcode/android/blob/master/android-start-activity/src/com/hmkcode/android/MainActivity.java"
click node_another_activity "https://github.com/hmkcode/android/blob/master/android-start-activity/src/com/hmkcode/android/AnotherActivity.java"
click node_menu_demo "https://github.com/hmkcode/android/blob/master/android-menu-events-change/src/com/hmkcode/android/MainActivity.java"
click node_options_menu "https://github.com/hmkcode/android/blob/master/android-options-menu/src/com/hmkcode/android/MainActivity.java"
click node_drawer_demo "https://github.com/hmkcode/android/blob/master/android-navigation-drawer/src/com/hmkcode/android/MainActivity.java"
click node_tabs_demo "https://github.com/hmkcode/android/blob/master/android-swipe-views-tabs/app/src/main/java/com/hmkcode/MainActivity.java"
click node_custom_view_demo "https://github.com/hmkcode/android/blob/master/android-custom-view/src/com/hmkcode/views/MainActivity.java"
click node_simple_view "https://github.com/hmkcode/android/blob/master/android-custom-view/src/com/hmkcode/views/SimpleView.java"
click node_donut_demo "https://github.com/hmkcode/android/blob/master/android-canvas-donut-chart/src/com/hmkcode/views/MainActivity.java"
click node_face_demo "https://github.com/hmkcode/android/blob/master/android-draw-happy-face/src/com/hmkcode/drawing/MainActivity.java"
click node_custom_list_demo "https://github.com/hmkcode/android/blob/master/android-custom-listview/src/com/hmkcode/android/MainActivity.java"
click node_custom_item "https://github.com/hmkcode/android/blob/master/android-custom-listview/src/com/hmkcode/android/Item.java"
click node_custom_adapter "https://github.com/hmkcode/android/blob/master/android-custom-listview/src/com/hmkcode/android/MyAdapter.java"
click node_pro_list_demo "https://github.com/hmkcode/android/blob/master/android-pro-listview/src/com/hmkcode/android/MainActivity.java"
click node_pro_model "https://github.com/hmkcode/android/blob/master/android-pro-listview/src/com/hmkcode/android/Model.java"
click node_pro_adapter "https://github.com/hmkcode/android/blob/master/android-pro-listview/src/com/hmkcode/android/MyAdapter.java"
click node_recycler_demo "https://github.com/hmkcode/android/blob/master/android-recyclerview/app/src/main/java/com/hmkcode/activities/MainActivity.java"
click node_image_demo "https://github.com/hmkcode/android/blob/master/android-show-image-and-path/src/com/hmkcode/android/image/MainActivity.java"
click node_real_path "https://github.com/hmkcode/android/blob/master/android-show-image-and-path/src/com/hmkcode/android/image/RealPathUtil.java"
click node_camera_demo "https://github.com/hmkcode/android/blob/master/android-camera-app/src/com/hmkcode/android/MainActivity.java"
click node_location_demo "https://github.com/hmkcode/android/blob/master/android-get-current-location/src/com/hmkcode/android/location/MainActivity.java"
click node_fused_location_demo "https://github.com/hmkcode/android/blob/master/android-get-last-location-fused-api/src/com/hmkcode/locations/MainActivity.java"
click node_connectivity_demo "https://github.com/hmkcode/android/blob/master/android-connectivity/app/src/main/java/com/hmkcode/connectivity/MainActivity.kt"
click node_http_async_demo "https://github.com/hmkcode/android/blob/master/android-clean-http-async-task/src/com/hmkcode/MainActivity.java"
click node_http_handler "https://github.com/hmkcode/android/blob/master/android-clean-http-async-task/src/com/hmkcode/http/HttpHandler.java"
click node_async_task "https://github.com/hmkcode/android/blob/master/android-clean-http-async-task/src/com/hmkcode/http/AsyncHttpTask.java"
click node_http_coroutine_demo "https://github.com/hmkcode/android/blob/master/android-http/http-coroutine/src/main/java/com/hmkcode/http/MainActivity.kt"
click node_http_variants "https://github.com/hmkcode/android/blob/master/android-http/http-asynctask/src/main/java/com/hmkcode/http/MainActivity.kt"
click node_json_get_demo "https://github.com/hmkcode/android/blob/master/android-http-get-json/src/com/hmkcode/android/MainActivity.java"
click node_json_post_demo "https://github.com/hmkcode/android/blob/master/android-post-json/app/src/main/java/com/hmkcode/MainActivity.java"
click node_gcm_server "https://github.com/hmkcode/android/blob/master/java-post-gcm/src/main/java/com/hmkcode/App.java"
click node_gcm_content "https://github.com/hmkcode/android/blob/master/java-post-gcm/src/main/java/com/hmkcode/vo/Content.java"
click node_gcm_client "https://github.com/hmkcode/android/blob/master/android-gcm-client/src/com/hmkcode/android/gcm/GcmBroadcastReceiver.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_start_demo,node_another_activity,node_menu_demo,node_options_menu,node_drawer_demo,node_tabs_demo,node_custom_view_demo,node_simple_view,node_donut_demo,node_face_demo,node_user toneBlue
class node_custom_list_demo,node_custom_item,node_custom_adapter,node_pro_list_demo,node_pro_model,node_pro_adapter,node_recycler_demo toneAmber
class node_image_demo,node_real_path,node_camera_demo,node_location_demo,node_fused_location_demo,node_connectivity_demo toneMint
class node_http_async_demo,node_http_handler,node_async_task,node_http_coroutine_demo,node_http_variants,node_json_get_demo,node_json_post_demo,node_gcm_server,node_gcm_content,node_gcm_client toneRose
```

## Components

### UI and navigation

- [Start activity demo](https://github.com/hmkcode/android/blob/master/android-start-activity/src/com/hmkcode/android/MainActivity.java): `android-start-activity/src/com/hmkcode/android/MainActivity.java`
- [Destination activity](https://github.com/hmkcode/android/blob/master/android-start-activity/src/com/hmkcode/android/AnotherActivity.java): `android-start-activity/src/com/hmkcode/android/AnotherActivity.java`
- [Menu events demo](https://github.com/hmkcode/android/blob/master/android-menu-events-change/src/com/hmkcode/android/MainActivity.java): `android-menu-events-change/src/com/hmkcode/android/MainActivity.java`
- [Options menu demo](https://github.com/hmkcode/android/blob/master/android-options-menu/src/com/hmkcode/android/MainActivity.java): `android-options-menu/src/com/hmkcode/android/MainActivity.java`
- [Navigation drawer demo](https://github.com/hmkcode/android/blob/master/android-navigation-drawer/src/com/hmkcode/android/MainActivity.java): `android-navigation-drawer/src/com/hmkcode/android/MainActivity.java`
- [Swipe tabs demo](https://github.com/hmkcode/android/blob/master/android-swipe-views-tabs/app/src/main/java/com/hmkcode/MainActivity.java): `android-swipe-views-tabs/app/src/main/java/com/hmkcode/MainActivity.java`
- [Custom view demo](https://github.com/hmkcode/android/blob/master/android-custom-view/src/com/hmkcode/views/MainActivity.java): `android-custom-view/src/com/hmkcode/views/MainActivity.java`
- [Simple view](https://github.com/hmkcode/android/blob/master/android-custom-view/src/com/hmkcode/views/SimpleView.java): `android-custom-view/src/com/hmkcode/views/SimpleView.java`
- [Donut chart demo](https://github.com/hmkcode/android/blob/master/android-canvas-donut-chart/src/com/hmkcode/views/MainActivity.java): `android-canvas-donut-chart/src/com/hmkcode/views/MainActivity.java`
- [Face drawing demo](https://github.com/hmkcode/android/blob/master/android-draw-happy-face/src/com/hmkcode/drawing/MainActivity.java): `android-draw-happy-face/src/com/hmkcode/drawing/MainActivity.java`

### Lists and rendering

- [Custom list demo](https://github.com/hmkcode/android/blob/master/android-custom-listview/src/com/hmkcode/android/MainActivity.java): `android-custom-listview/src/com/hmkcode/android/MainActivity.java`
- [List item model](https://github.com/hmkcode/android/blob/master/android-custom-listview/src/com/hmkcode/android/Item.java): `android-custom-listview/src/com/hmkcode/android/Item.java`
- [Custom list adapter](https://github.com/hmkcode/android/blob/master/android-custom-listview/src/com/hmkcode/android/MyAdapter.java): `android-custom-listview/src/com/hmkcode/android/MyAdapter.java`
- [Grouped list demo](https://github.com/hmkcode/android/blob/master/android-pro-listview/src/com/hmkcode/android/MainActivity.java): `android-pro-listview/src/com/hmkcode/android/MainActivity.java`
- [Grouped list model](https://github.com/hmkcode/android/blob/master/android-pro-listview/src/com/hmkcode/android/Model.java): `android-pro-listview/src/com/hmkcode/android/Model.java`
- [Grouped list adapter](https://github.com/hmkcode/android/blob/master/android-pro-listview/src/com/hmkcode/android/MyAdapter.java): `android-pro-listview/src/com/hmkcode/android/MyAdapter.java`
- [RecyclerView demos](https://github.com/hmkcode/android/blob/master/android-recyclerview/app/src/main/java/com/hmkcode/activities/MainActivity.java): `android-recyclerview/app/src/main/java/com/hmkcode/activities/MainActivity.java`

### Device and media

- [Image picker demo](https://github.com/hmkcode/android/blob/master/android-show-image-and-path/src/com/hmkcode/android/image/MainActivity.java): `android-show-image-and-path/src/com/hmkcode/android/image/MainActivity.java`
- [URI path resolver](https://github.com/hmkcode/android/blob/master/android-show-image-and-path/src/com/hmkcode/android/image/RealPathUtil.java): `android-show-image-and-path/src/com/hmkcode/android/image/RealPathUtil.java`
- [Camera demo](https://github.com/hmkcode/android/blob/master/android-camera-app/src/com/hmkcode/android/MainActivity.java): `android-camera-app/src/com/hmkcode/android/MainActivity.java`
- [Current location demo](https://github.com/hmkcode/android/blob/master/android-get-current-location/src/com/hmkcode/android/location/MainActivity.java): `android-get-current-location/src/com/hmkcode/android/location/MainActivity.java`
- [Fused location demo](https://github.com/hmkcode/android/blob/master/android-get-last-location-fused-api/src/com/hmkcode/locations/MainActivity.java): `android-get-last-location-fused-api/src/com/hmkcode/locations/MainActivity.java`
- [Connectivity demo](https://github.com/hmkcode/android/blob/master/android-connectivity/app/src/main/java/com/hmkcode/connectivity/MainActivity.kt): `android-connectivity/app/src/main/java/com/hmkcode/connectivity/MainActivity.kt`

### Networking and messaging

- [Async HTTP demo](https://github.com/hmkcode/android/blob/master/android-clean-http-async-task/src/com/hmkcode/MainActivity.java): `android-clean-http-async-task/src/com/hmkcode/MainActivity.java`
- [HTTP handler](https://github.com/hmkcode/android/blob/master/android-clean-http-async-task/src/com/hmkcode/http/HttpHandler.java): `android-clean-http-async-task/src/com/hmkcode/http/HttpHandler.java`
- [Async HTTP task](https://github.com/hmkcode/android/blob/master/android-clean-http-async-task/src/com/hmkcode/http/AsyncHttpTask.java): `android-clean-http-async-task/src/com/hmkcode/http/AsyncHttpTask.java`
- [Coroutine HTTP demo](https://github.com/hmkcode/android/blob/master/android-http/http-coroutine/src/main/java/com/hmkcode/http/MainActivity.kt): `android-http/http-coroutine/src/main/java/com/hmkcode/http/MainActivity.kt`
- [HTTP variants](https://github.com/hmkcode/android/blob/master/android-http/http-asynctask/src/main/java/com/hmkcode/http/MainActivity.kt): `android-http/http-asynctask/src/main/java/com/hmkcode/http/MainActivity.kt`
- [JSON GET demo](https://github.com/hmkcode/android/blob/master/android-http-get-json/src/com/hmkcode/android/MainActivity.java): `android-http-get-json/src/com/hmkcode/android/MainActivity.java`
- [JSON POST demo](https://github.com/hmkcode/android/blob/master/android-post-json/app/src/main/java/com/hmkcode/MainActivity.java): `android-post-json/app/src/main/java/com/hmkcode/MainActivity.java`
- [GCM sender](https://github.com/hmkcode/android/blob/master/java-post-gcm/src/main/java/com/hmkcode/App.java): `java-post-gcm/src/main/java/com/hmkcode/App.java`
- [GCM payload](https://github.com/hmkcode/android/blob/master/java-post-gcm/src/main/java/com/hmkcode/vo/Content.java): `java-post-gcm/src/main/java/com/hmkcode/vo/Content.java`
- [GCM client receiver](https://github.com/hmkcode/android/blob/master/android-gcm-client/src/com/hmkcode/android/gcm/GcmBroadcastReceiver.java): `android-gcm-client/src/com/hmkcode/android/gcm/GcmBroadcastReceiver.java`

### Other components

- **App user**

## Connections

- Start activity demo → Destination activity: starts (evidence: `android-start-activity/src/com/hmkcode/android/MainActivity.java`)
- Custom view demo → Simple view: uses (evidence: `android-custom-view/src/com/hmkcode/views/MainActivity.java`)
- Custom list demo → List item model: creates (evidence: `android-custom-listview/src/com/hmkcode/android/MainActivity.java`)
- Custom list demo → Custom list adapter: sets adapter (evidence: `android-custom-listview/src/com/hmkcode/android/MainActivity.java`)
- Grouped list demo → Grouped list model: creates (evidence: `android-pro-listview/src/com/hmkcode/android/MainActivity.java`)
- Grouped list demo → Grouped list adapter: sets adapter
- Image picker demo → URI path resolver: resolves path (evidence: `android-show-image-and-path/src/com/hmkcode/android/image/MainActivity.java`)
- Async HTTP demo → HTTP handler: uses (evidence: `android-clean-http-async-task/src/com/hmkcode/MainActivity.java`)
- HTTP handler → Async HTTP task: executes (evidence: `android-clean-http-async-task/src/com/hmkcode/http/HttpHandler.java`)
- GCM sender → GCM payload: builds payload (evidence: `java-post-gcm/src/main/java/com/hmkcode/App.java`)
