This Android app displays real-time environmental sensor data from Firebase and shows sensor locations on Google Maps.
git clone [your-repo-url]
cd ECE510_Lab9
# On Windows (PowerShell/CMD):
.\gradlew.bat :app:assembleDebug
# On Linux/Mac:
./gradlew :app:assembleDebugThe app will build and run with demo data. No special Java versions or Android SDK setup needed - Gradle handles this automatically.
Google Maps API:
- Copy the template:
- Windows:
copy local.properties.template local.properties - Linux/Mac:
cp local.properties.template local.properties
- Windows:
- Get your API key from Google Cloud Console
- Enable the "Maps SDK for Android" API
- Edit
local.propertiesand replaceyour_google_maps_api_key_herewith your actual key
Firebase Setup:
- Create a Firebase project at Firebase Console
- Add an Android app with package name:
com.example.ece510_exp9 - Download
google-services.jsonfrom your Firebase project - Copy the template:
- Windows:
copy app\google-services.json.template app\google-services.json - Linux/Mac:
cp app/google-services.json.template app/google-services.json
- Windows:
- Replace the placeholder values in
app/google-services.jsonwith your actual Firebase config - Enable "Realtime Database" in your Firebase project console
Open in Android Studio or run:
# On Windows (PowerShell/CMD):
.\gradlew.bat :app:installDebug
# On Linux/Mac:
./gradlew :app:installDebuglocal.propertiesandgoogle-services.jsonare ignored by Git for security- App works without Firebase (shows loading state) but needs Maps API for location features
- Use the template files (
*.template) to set up your own credentials - Tested on Android API 24+ (Android 7.0+)