How kowshiq006/imable works
Project type and purpose
• This is a single-client Android mobile application (“ImAble”) whose purpose is to connect autistic children, families, and organizations with special features: communication tools (images + audio), parental controls, GPS monitoring, emergency SMS, and a feed section.
• Key indicators: an Android Studio Gradle project with only an “app” module, numerous Activities in com.example.imable1, a google-services.json file, and raw audio resources.
File structure
• Top-level:
• app/ – the only Android module
• build.gradle, settings.gradle, gradle/… – standard Android build scripts
• Inside app/:
• src/main/java/com/example/imable1 – contains ~25 Activity and helper classes (AutoMessage, Upload, Constants, etc.)
• src/main/res – UI layouts, menus, drawables, fonts, raw audio files (e.g., angry.mpeg, happy.mpeg)
• src/debug & src/release – Google Maps API key configurations
• src/androidTest & src/test – instrumentation and unit tests
• Configs:
• google-services.json – indicates Firebase services (Auth, Database, Storage, Cloud Messaging)
• AndroidManifest.xml – registers Activities and permissions (e.g. SEND_SMS, ACCESS_FINE_LOCATION)
README for additional insights
• Confirms required features: communication tools, parental control, GPS monitoring, emergency SMS, feed.
• No built-in backend module, so likely relies on Firebase and Android platform services.
a. Main components:
1. Android App (mobile client)
• UI Layer: Activities & Fragments (login, register, homepage, articles, blogs, images, emergency, parental controls)
• Domain/Controller Layer: AutoMessage, Upload, Constants, custom Adapters, ExampleDialog
• Data Layer: Local cache (if any), Firebase SDKs
• Platform Services:
• LocationService (GPS monitoring via Google Maps API)
• SMSService (Emergency SMS via Android TelephonyManager)
2. Backend-as-a-Service: Firebase
• Authentication (user accounts)
• Realtime Database / Firestore (feed section, user profiles)
• Cloud Storage (images, audio uploads)
• Cloud Messaging (notifications, emergency alerts)
• (Optionally) Cloud Functions for SMS fallback or advanced logic
3. External APIs
• Google Maps Android API (for in-app map display & geofencing)
• SMS Gateway (native Android SMS or third-party if configured)
b. Relationships & Data Flows:
• UI Layer <-> Controller Layer: user actions trigger Controller methods
• Controller Layer <-> Firebase SDK: REST/gRPC calls for Auth, DB, Storage
• Controller Layer <-> Platform Services:
• LocationService requests GPS → Google Maps SDK → returns coordinates → upload to Firebase
• SMSService composes and sends SMS on emergencies
• Firebase Cloud Messaging pushes notifications → Android App receives & routes to UI
c. Architectural patterns & design principles:
• MVC/MVP flavor: Activities = View + Controller, helper classes as Model/Service
• SDK-driven integration: minimize custom backend logic by leveraging Firebase PaaS
• Separation of Concerns: UI in res/layout + Activities, business logic in Java classes (AutoMessage, Upload), external integrations via dedicated services
d. Key technologies & libraries:
• Android SDK (min/target API levels in Gradle)
• Firebase Android SDKs (Auth, Firestore/RealtimeDB, Storage, Messaging)
• Google Maps Android API v2
• Android Support Libraries / AndroidX for UI components and navigation
• Gradle build system
Essential elements to capture
• All major Activities grouped by functional area (Onboarding, Feed, Communication, Safety/Parental Tools)
• Core Service classes (Upload, AutoMessage, Constants) and their connection to Firebase
• External integrations: Google Maps API + Firebase modules
• Data flow for emergency SMS and GPS monitoring
• Deployment context: Android device → Internet → Firebase → back to device (notifications)