Practical guides¶
These guides are task-oriented. Each one shows the Python declaration, the generated Android behavior and the part that remains under application control.
01API-backed feed
Pagination, refresh, retry and optimistic rows.
02Real-time chatWebSocket lifecycle, pending sends and reconnect.
03Firebase pushToken, topics, foreground events and Android setup.
04Spotify-style audioBackground service, playlists and lock-screen controls.
05SQLite and encryptionParameterized data, transactions and protected values.
06Streaming uploadsMultipart progress, cancellation and result handling.
07Maps and trackingDevice location, preview simulation and calculated routes.
08Knowledge appMarkdown, inline spans, trees and local documents.
How to use a guide¶
- Copy the smallest example into
writehere.py. - Confirm callbacks and layout in the Hot Previewer.
- Run
apkpy build. - Open the generated project in Android Studio.
- Test platform behavior on an emulator and a physical device.
The Previewer is a fast development surface. Permission dialogs, codecs, background restrictions, Firebase and GPS must still be validated on Android.