Never miss your morning alarm again!
Auto-disconnect Bluetooth devices before you fall asleep
Features β’ Why This App β’ Installation β’ Usage β’ Contributing
Ever fallen asleep with your Bluetooth earbuds in, only to miss your morning alarm because:
- Your earbuds fell out during sleep
- The alarm played through disconnected earbuds instead of your phone speaker
- You couldn't hear the alarm at all
This app solves that problem!
As someone who loves listening to podcasts or music before sleeping, I realized a common issue β my Bluetooth earbuds would fall out during sleep, but my phone still thought they were connected. This meant my morning alarm would play through the earbuds lying somewhere on my bed instead of the phone speaker.
I built this app to automatically disconnect Bluetooth after a set time, ensuring:
- β Your alarm plays through your phone speaker
- β You wake up on time
- β Better battery life for both phone and earbuds
- β±οΈ Custom Timer - Set any duration in minutes
- π Quick Presets - One-tap buttons for 5, 15, 30, or 60 minutes
- π± Clean UI - Modern Material Design interface
- π Notification - Shows countdown while timer is running
- π Battery Friendly - Minimal background resource usage
- π― Simple & Focused - Does one thing and does it well
| Home Screen | Timer Running |
|---|---|
| Set your sleep timer | See countdown in notification |
- Download the latest APK from Releases
- Enable "Install from unknown sources" if prompted
- Install and enjoy!
# Clone the repository
git clone https://github.com/BurningHat20/bluetooth-auto-off-timer.git
# Navigate to project directory
cd bluetooth-auto-off-timer
# Build debug APK
./gradlew assembleDebug
# APK will be at: app/build/outputs/apk/debug/app-debug.apk- Open the app - See your current Bluetooth status
- Set timer - Enter minutes or use quick preset buttons (5/15/30/60 min)
- Start timer - Tap "Start Timer" button
- Sleep peacefully - Bluetooth will auto-disconnect when timer ends
- Wake up on time - Your alarm will play through phone speaker!
- Android 12 (API 31) or higher
- Bluetooth-enabled device
- Bluetooth permission granted
| Permission | Why Needed |
|---|---|
BLUETOOTH_CONNECT |
To disconnect Bluetooth |
FOREGROUND_SERVICE |
To run timer in background |
POST_NOTIFICATIONS |
To show countdown notification |
- Language: Java
- Min SDK: 31 (Android 12)
- Target SDK: 32
- UI: Material Components
- Architecture: Service-based background timer
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
BurningHat - 19-year-old Software Engineer
- GitHub: @BurningHat20
If this app helped you wake up on time, consider:
- β Starring this repository
- π Reporting bugs or suggesting features
- π’ Sharing with friends who have the same problem
Made with β€οΈ for better mornings