My mum recently got a new phone, a Moto G, after my recommendation. It’s a big step up from Samsung S8000 Jet she had before (one of Samsung’s last phones before adopting Android, and which had a beta version of Android 2.1 a.k.a JetDroid installed, which I had a small hand in).
One of the features she liked most about it was the option to have the SMS tone repeat every minute, which was useful if it went off when she was out of hearing range (this handset was before notification LEDs or smartwatches!). This feature was markedly missing from Android 4.4.2 KitKat which is currently on here phone, so I offered to create an app to emulate this feature, because I could and wanted to see if I could.
After two hours, a brief foray into
Handlers, I arrived at a solution that uses a
BroadcastReceiver to detect an incoming SMS, start a
Service once every 1, 2, 5 or 10 minutes using an
AlarmManager Alarm and re-emit the default notification tone. This cycle is broken when the keyguard is removed when the phone is unlocked to answer the SMS. She was very pleased to have the feature back, which makes up for the predictive keyboard I forced on her!
If anyone is interested in using this or taking it further (I’m sure there are already many apps like this!), you can find the source code here.