How cnuf791/hotsharefile works
HotShareFile is an Android app that serves a local-network web interface for bidirectional file transfer. The main workflow is: select files in the app or share them into it, show a reachable address, then let a browser download those files or upload files to Android storage. The excerpts show server lifecycle, HTTP handling, progress collection, and storage operations; the QR-to-UI connection and some web-page behavior are documented but not fully shown in source.
Main entry points: SimpleHttpServer.kt HTTP server · MainActivity.kt App UI and setup · ProgressUpdate.kt Progress updates · QR.kt QR encoder
Components 10
Android app
- App UI and setup
app/src/main/java/com/hotsharefile/hotsharefile/MainActivity.kt - Network address
app/src/main/java/com/hotsharefile/hotsharefile/MainActivity.kt - QR encoder
app/src/main/java/com/hotsharefile/hotsharefile/QR.kt
Local transfer
- Progress updates
app/src/main/java/com/hotsharefile/hotsharefile/ProgressUpdate.kt - HTTP server
app/src/main/java/com/hotsharefile/hotsharefile/SimpleHttpServer.kt - Android Downloads
Browser interface
- Web request pages
app/src/main/java/com/hotsharefile/hotsharefile/SimpleHttpServer.kt - HTML pages
app/src/main/assets
Other components
- Android user
- Receiving device
Connections 12
- Android user → App UI and setup: selects or shares
README.md - App UI and setup → HTTP server: starts server
app/src/main/java/com/hotsharefile/hotsharefile/MainActivity.kt - App UI and setup → Network address: gets address
app/src/main/java/com/hotsharefile/hotsharefile/MainActivity.kt - App UI and setup → QR encoder: generates QR
README.md - App UI and setup → Progress updates: collects progress
app/src/main/java/com/hotsharefile/hotsharefile/MainActivity.kt - HTTP server → Progress updates: emits updates
app/src/main/java/com/hotsharefile/hotsharefile/SimpleHttpServer.kt - Receiving device → HTTP server: sends requests
README.md - HTTP server → Receiving device: serves responses
app/src/main/java/com/hotsharefile/hotsharefile/SimpleHttpServer.kt - HTTP server → Web request pages: dispatches requests
app/src/main/java/com/hotsharefile/hotsharefile/SimpleHttpServer.kt - HTTP server → HTML pages: loads HTML
app/src/main/java/com/hotsharefile/hotsharefile/SimpleHttpServer.kt - HTTP server → Android Downloads: writes uploads
app/src/main/java/com/hotsharefile/hotsharefile/SimpleHttpServer.kt - HTTP server → Android Downloads: reads shared files
app/src/main/java/com/hotsharefile/hotsharefile/SimpleHttpServer.kt