Thanks to visit codestin.com
Credit goes to github.com

Skip to content

πŸ”΅ Android app that auto-disconnects Bluetooth after a set time β€” perfect for sleeping with earbuds without missing your morning alarm!

License

Notifications You must be signed in to change notification settings

BurningHat20/SleepBT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”΅ Bluetooth Auto-Off Timer

Bluetooth Timer Logo

Never miss your morning alarm again!
Auto-disconnect Bluetooth devices before you fall asleep

Features β€’ Why This App β€’ Installation β€’ Usage β€’ Contributing


🎯 The Problem

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!

πŸ’‘ Why This App

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

✨ Features

  • ⏱️ 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

πŸ“± Screenshots

Home Screen Timer Running
Set your sleep timer See countdown in notification

πŸ“₯ Installation

From APK

  1. Download the latest APK from Releases
  2. Enable "Install from unknown sources" if prompted
  3. Install and enjoy!

Build from Source

# 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

πŸš€ Usage

  1. Open the app - See your current Bluetooth status
  2. Set timer - Enter minutes or use quick preset buttons (5/15/30/60 min)
  3. Start timer - Tap "Start Timer" button
  4. Sleep peacefully - Bluetooth will auto-disconnect when timer ends
  5. Wake up on time - Your alarm will play through phone speaker!

πŸ“‹ Requirements

  • Android 12 (API 31) or higher
  • Bluetooth-enabled device
  • Bluetooth permission granted

πŸ” Permissions

Permission Why Needed
BLUETOOTH_CONNECT To disconnect Bluetooth
FOREGROUND_SERVICE To run timer in background
POST_NOTIFICATIONS To show countdown notification

πŸ› οΈ Tech Stack

  • Language: Java
  • Min SDK: 31 (Android 12)
  • Target SDK: 32
  • UI: Material Components
  • Architecture: Service-based background timer

🀝 Contributing

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘¨β€πŸ’» Author

BurningHat - 19-year-old Software Engineer


🌟 Support

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

About

πŸ”΅ Android app that auto-disconnects Bluetooth after a set time β€” perfect for sleeping with earbuds without missing your morning alarm!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published