Can I build an Android app that stops games when I fall asleep?

0
1
Asked By MellowCedar47 On

I'm looking for an Android app that starts a countdown whenever I open a game. After a set amount of time, it should give me a short window—such as two minutes—to confirm that I'm still awake or actively playing. If I don't respond, it should return to the home screen, lock the phone, or turn off the display. If I do respond, the timer should restart and ask again later.

I often play games in bed and accidentally fall asleep while playing. My phone's game booster keeps the game and screen active, so I sometimes wake up to a completely drained battery or a very hot phone. I've tried disabling the game booster, but my phone doesn't seem to allow it.

I have no programming experience. Would an app like this be reasonably easy to create with AI, or would I need to hire a developer? Does something similar already exist?

3 Answers

Answered By SilverKite61 On

The simplest solution may be changing the habit or using the phone’s built-in app and screen-time controls, since they can sometimes force a game to stop after a limit. Also check whether the game booster has settings for keeping the screen awake, preventing sleep, or limiting charging temperature. A third-party automation app may not be able to override every manufacturer restriction.

Answered By QuietRiver8 On

If you’re using Android, MacroDroid may be worth trying. It can detect when a particular app is opened, start a timer, show prompts, and perform actions such as going to the home screen or locking the device. You may need to grant accessibility and battery-related permissions, and some actions can vary depending on your phone manufacturer.

Answered By BrightLynx22 On

AI can help generate parts of an app, but it won’t remove the need to understand Android permissions, background activity, timers, overlays, and device-specific restrictions. For someone starting from zero, a no-code automation app is probably much easier to test. If that cannot do everything you need, a developer could build it, but you should write down the exact timer behavior and which actions the app must perform first.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.