Your phone already has everything it needs to help you. Contexta makes it act on it β on-device, privately, without asking.
π² Download APK Β Β·Β π¬ Watch Demo Β Β·Β π Full Proposal
- Overview
- The Problem
- The Solution
- Screenshots
- System Architecture
- Intelligent Context Pipelines
- Tech Stack
- Project Structure
- Privacy & Performance
- Getting Started
- Team
Contexta is a Personal AI Operating System layer for Android smartphones. It acts as an autonomous agent that continuously reads your physical environment and digital schedule to proactively adjust your phone settings β saving you from the cognitive tax of constant manual toggles.
Whether you're stepping into a meeting, walking to a destination, or arriving home after work, Contexta observes, decides, and acts seamlessly in the background β with zero cloud dependency, zero latency, and zero compromise on privacy.
| Stat | Value |
|---|---|
| β‘ Action Latency | < 100ms |
| π§ Processing | 100% On-Device |
| βοΈ Cloud Calls | Zero |
| π Battery Overhead | Negligible (WorkManager) |
| π± Platform | Android 10+ |
Smartphones are inherently reactive. This creates friction at every step of a user's day:
- Manual Switching β Users must remember to silence their phones before meetings or raise brightness when stepping outdoors.
- Micro-Distractions β The average user makes ~40 minor setting adjustments per day, collectively fragmenting focus and wasting cognitive energy.
- Rigid Schedules β Tools like "Do Not Disturb" operate on fixed time windows, ignoring sudden real-world changes.
- Context Blindness β No native Android feature connects your calendar, movement, and location into a unified, proactive response.
Contexta introduces a continuous, on-device perception-action loop:
ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ
β OBSERVE ββββββΆβ DECIDE ββββββΆβ ACT ββββββΆβ LEARN β
β Calendar β β On-Deviceβ β DND / β β Override β
β WiFi β β Logic β β Volume / β β Feedback β
β Accel. β β + ML β β Apps β β Loop β
ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ
- Observe β Ingests native Android signals: Calendar events, Accelerometer readings, WiFi SSID.
- Decide β Classifies user context in real-time using on-device logic (Meeting, Walking, Driving, Home, Away).
- Act β Triggers system intents: DND mode, sound profiles, app launches.
- Learn β Adapts instantly to user overrides without retraining or cloud sync.
Contexta bridges a high-fidelity React Native frontend with a low-latency Android Java Native Engine.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β REACT NATIVE FRONTEND (Expo Β· TypeScript Β· UI/UX) β
β β
β ContextDashboard ActivityLog OverridePanel DetectorCards β
ββββββββββββββββββββ¬ββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ€
β CalendarBridge β MovementBridge β HomeBridge β
β (JSI / RN NM) β (JSI / RN NM) β (JSI / RN NM) β
ββββββββββββββββββββ΄ββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββ€
β ANDROID NATIVE SENSOR FUSION ENGINE (Java) β
β β
β ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ β
β β MeetingDetector β β MovementDetector β β HomeDetector β β
β β CalendarContractβ β SensorManager β β WifiManager β β
β β Β±30min scan β β XYZ variance β β SSID match β β
β ββββββββββ¬ββββββββββ ββββββββββ¬ββββββββββ ββββββββββ¬ββββββββββ β
β βΌ βΌ βΌ β
β ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ β
β β MeetingModeCtrl β β MovementAction β β HomeProfileCtrl β β
β β DND / Silent API β β Maps Β· Music β β Volume Β· Media β β
β ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β WorkManager (battery-efficient background polling) β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Layer | Technology | Responsibility |
|---|---|---|
| UI Layer | React Native 0.73, Expo, TypeScript | Dashboard, real-time logs, override controls |
| Bridge Layer | React Native Native Modules (JSI) | Bi-directional JSON sync between JS and Java |
| Detector Layer | Android Java | Reads raw sensors; outputs classified context |
| Action Layer | Android Intents & APIs | Executes system-level changes (DND, volume, app launch) |
| Scheduler | Android WorkManager | Battery-safe background polling; avoids aggressive Wakelocks |
| Backend | Spring Boot 3 | Rule configuration, telemetry storage, future ML model serving |
CalendarContract βββΆ Β±30min window scan βββΆ Keyword match
(Meeting / Call / Standup)
β
βΌ
ACTION_INTERRUPTION_FILTER_PRIORITY
(DND ON Β· Ringer Silenced)
- Sensor: Android
CalendarContractprovider - Window: Β±30 minutes from current time
- Keywords:
Meeting,Call,Standup,Interview,Review - Confidence: Percentage match (e.g., 91%)
- Action:
NotificationManager.ACTION_INTERRUPTION_FILTER_PRIORITY+ silent ringer
SensorManager (SENSOR_DELAY_NORMAL)
β
βΌ
XYZ magnitude vector βββΆ Sliding variance window
β
ββββββββββββββββββ΄βββββββββββββββββ
var > 3.0 var > 0.8
β β
βΌ βΌ
DRIVING WALKING
Launch Google Maps Launch Music App
- Sensor:
SensorManager.SENSOR_DELAY_NORMAL(TYPE_ACCELEROMETER) - Math:
variance = Ξ£(|magnitude β mean|Β²) / nover a sliding window - Thresholds: Variance > 3.0 β Driving Β· Variance > 0.8 β Walking
- Confidence: Percentage (e.g., 87%)
- Action: Fires Android
Intentto launch Maps (Driving) or Spotify/Music (Walking)
WifiManager.getConnectionInfo()
β
βΌ
Current SSID βββΆ Compare with stored Home SSID
β
βββββββββββββββ΄βββββββββββββββ
MATCH NO MATCH
β β
βΌ βΌ
Profile β HOME Profile β AWAY
(normalize volumes, (office-appropriate
lift app restrictions) settings retained)
- Sensor:
WifiManager.getConnectionInfo()β no GPS required - Logic: String-matches current SSID against user-configured home network
- Confidence: Fixed 95% (SSID uniqueness assumption)
- Home Action: Normalizes ringer, lifts notification restrictions, applies comfort media settings
- Away Action: Retains DND-compatible office profile; conserves battery
| Area | Technology |
|---|---|
| Mobile Frontend | React Native 0.73, Expo, TypeScript |
| UI Design | Custom Glassmorphism Β· Tailwind-style utilities |
| Native Engine | Android Java (API 29+) |
| Background Jobs | Android WorkManager |
| Sensor APIs | CalendarContract, SensorManager, WifiManager |
| System APIs | NotificationManager, AudioManager, Intent |
| Backend | Spring Boot 3, Java 17 |
| Build | Gradle 8, EAS Build |
Contexta/
βββ android/ # Android native module (Java)
β βββ app/src/main/java/
β βββ detectors/
β β βββ MeetingDetector.java
β β βββ MovementDetector.java
β β βββ HomeDetector.java
β βββ controllers/
β β βββ MeetingModeController.java
β β βββ MovementActionController.java
β β βββ HomeProfileController.java
β βββ bridges/
β βββ CalendarBridge.java
β βββ MovementBridge.java
β βββ HomeBridge.java
βββ frontend/ # React Native / Expo app (TypeScript)
β βββ components/
β β βββ ContextDashboard.tsx
β β βββ DetectorCard.tsx
β β βββ ActivityLog.tsx
β β βββ OverridePanel.tsx
β βββ services/
β βββ CalendarService.ts
β βββ MovementService.ts
β βββ HomeService.ts
βββ backend/ # Spring Boot 3 (Java)
β βββ src/main/java/
β βββ config/
β βββ controller/
β βββ service/
βββ assets/
β βββ logo.png # Contexta brand logo
β βββ screenshots/ # App screenshots (8 screens)
β βββ dashboard_initial.jpeg
β βββ meeting_cold_start.jpeg
β βββ walking_detection.jpeg
β βββ home_detection_home.jpeg
β βββ home_detection_away.jpeg
β βββ home_profile_active.jpeg
β βββ meeting_detection_active.jpeg
β βββ activity_log_full.jpeg
βββ docs/ # Architecture diagrams
βββ Contexta-Release.apk # Prebuilt release APK
βββ Contexta_Demo.mp4 # Demo walkthrough video
βββ Contexta_Openclaw.pdf # Full hackathon proposal
βββ README.md
| Principle | Implementation |
|---|---|
| Zero Cloud Processing | All detection logic runs 100% on-device. No calendar events, GPS data, or sensor telemetry are ever transmitted externally. |
| No Persistent Storage | Sensor readings are processed in-memory and discarded immediately after classification. |
| Negligible Battery Impact | Android WorkManager with batched tasks and passive listeners β no aggressive CPU Wakelocks. |
| Sub-100ms Latency | Native Java execution eliminates JS-bridge round-trips for time-critical actions. |
| Offline Ready | Works with zero internet connection. All intelligence is pre-compiled on the device. |
- Node.js 18+
- Android Studio (Flamingo or later)
- Java 17
- Expo CLI:
npm install -g expo-cli
git clone https://github.com/AnanthAkshay/Contexta.git
cd Contexta/frontend
npm install
npx expo run:androidcd Contexta/android
./gradlew assembleReleasecd Contexta/backend
./mvnw spring-boot:runadb install Contexta-Release.apkGrant permissions on first launch: Calendar, Physical Activity, and Nearby WiFi Devices.
Team Beta Onepiece β M.S. Ramaiah Institute of Technology, Bengaluru
| Name | Role |
|---|---|
| Akshay A | Team Lead Β· Frontend (React Native) |
| Aaditya V | Backend (Spring Boot) |
| Tejas M | UI/UX Design |
| H M Pranav | Database & Integration |
Submitted for the OpenClaw Hackathon by Samsung Prism 2026 β Daily Utility Track.
Made with β€οΈ in Bengaluru Β Β·Β M.S. Ramaiah Institute of Technology
β‘ On-device Β Β·Β π§ No cloud Β Β·Β π΄ Offline ready
.....







