Android App

A native Kotlin app with a Connect Ageless AI button in the toolbar and the same live lead feed, powered by your PHP API.

Live preview — this is m.php, the WebView content

How the app integrates

1. Native toolbar button. MainActivity renders a native Material “◆ Connect Ageless AI” button. Tapping it calls into the web layer through a JavaScript bridge (AgelessBridge.connect()) — no browser chrome, a real native control.

2. WebView live feed. The app loads m.php, a mobile-optimised view of the same /api/leads.php and /api/stats.php endpoints the website uses — so leads appear on web and mobile simultaneously.

3. App-sourced leads. The “Send test lead (from app)” button fires events tagged source: android, which show up with a 📱 badge on the dashboard.

4. Same backend. Point the app at your machine’s LAN IP and the phone talks to the exact same MySQL-backed API.

Build the APK

The full Android Studio project is in the /android folder. Set your server URL, then build:

# 1. Edit android/app/src/main/java/.../Config.kt # set BASE_URL to your machine's LAN IP, e.g. const val BASE_URL = "http://192.168.1.50/AgelessAi-Demo" # 2. Build a debug APK cd android ./gradlew assembleDebug # 3. Install on a device / emulator adb install app/build/outputs/apk/debug/app-debug.apk

Requires Android Studio (or command-line SDK) with API 34. The emulator reaches your PC at http://10.0.2.2/AgelessAi-Demo.