The Architecture of Trust
Many universities transition to digital attendance, only to find that single-factor QR codes actually increase proxy attendance (buddy punching). Students simply photograph the QR code and send it to an absent friend. SmartTrack isn't just an attendance logger—it is a fraud-prevention engine. By combining GPS proximity geofencing (using Haversine calculations) with Wi-Fi SSID validation, the system guarantees physical presence without the high cost or privacy concerns of biometric hardware.
Faculty & Management Workflows
Centralized Dashboards
The Teacher's Dashboard and Management Dashboard provide instant access to the core actions: generating active QRs, reviewing attendance logs, and spotting suspicious activity. The UI is designed to minimize cognitive load so lecturers can start a session in seconds. The Settings Page allows deep personalization and notification controls for faculty members.
Dynamic QR Generation
This is the heart of the system. When a lecturer selects a subject to generate a QR code, the app instantly captures the device's precise GPS coordinates and binds it to a time-scoped token (e.g., 5-30 minutes). The QR code displayed to the students refreshes continuously, immediately rendering screenshots useless for remote absent students.
Visual Analytics & Real-Time Tracking
Instead of digging through CSVs, lecturers are greeted with Visual Analytics via MPAndroidChart. They can view attendance ratios as dynamic pie/bar charts. The Attendance Record and Teacher Detail Page provide granular, real-time synchronization so faculty can see who scanned in successfully exactly as it happens.
Auditing & Suspicious Activity
Fraud prevention is completely transparent. If a student attempts to scan from outside the geofence, the app fails their scan and logs it to the Suspicious Activity dashboard. Faculty can see the exact distance mismatch (e.g., 18,000+ meters away). The Recent Absence and Activity Logs help administrators identify chronic truancy immediately.
The Student Experience
Dashboard & Gamified Streaks
The Student Dashboard is engineered for speed, featuring a prominent 'Scan QR Code' button integrated with their daily schedule. To transform attendance from a chore into a rewarding habit, I introduced Gamification. Students build "Streaks" for consecutive attendance and unlock unique Avatar Frames (like Silver Sparkle or Diamond Crown) at key milestones.
Health Metrics & Camera Integration
The Attendance Percentage Page provides immediate color-coded feedback on their standing (Green for safe, Red for warning). When it's time to check in, the Camera Scanner utilizes CameraX and ZXing to quickly capture the dynamic payload, simultaneously initiating the background GPS & Database Sync to validate the network and location requirements instantly.
Security Interceptions
Instant Validation Feedback
A robust system must communicate errors gracefully. When the dual-layer validation succeeds, the student sees a bright, confirmed Attendance Submitted screen.
However, if they attempt to scan an old photograph of a QR code, the system throws a strict QR Expired error. If they scan a valid live code sent via WhatsApp but are not physically in the room, the GPS geofence catches them and throws an Out of Bounds (Distance) error. This ensures a 100% interception rate for fraudulent check-ins.