How Two Android Intent Bugs Broke My App’s Red Alert Button
I'm building an Android app for my mother. She lives in a village; the rest of us live in cities, and I wanted a way for her to tell us how she's feeling without typing a word. The app is called CareVocal (internally, CareBridge). It has three big buttons: green for "feeling good", yellow for "something hurts", red for "need help".
The red button is the one I can't get wrong. This is the story of the two times I did.
What the red button is supposed to do
One tap, and three things happen:
- The entry is saved and flagged for her doctor.
- A pre-filled SMS opens, addressed to her trusted contacts, with a fixed alert message and a timestamp. No location. I never collect it.
- The phone dialer opens with the local emergency number already typed in.
She still has to tap "send" and tap "call". That's deliberate:...
Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE