Hey everyone, I'm a mid level software dev and have been learning the sdk and creating some projects to get a grasp on the system.
I am working on a current project which I have gotten to work, but I'm wondering what other ways I can go about designing it.
Here's what it needs to do.
When a text message is received from a specific number, I want to fire off a message that repeats at a certain interval for a specific duration.
1. To make this work, I had set my sms broadcast receiver and checked the incoming messages for the number I'm looking for.
2. When found I would start an intent service that would pull out the interval and duration from saved shared prefs, and then fire off a broadcast.
3. The broadcast receiver for this would catch it and use the alarm manager to handle the toast message repetitions.
This all works just fine, I'm wondering if there's a more elegant way of going about doing this or if there's a way that would be better for the system? Any suggestions or advice?
Thanks!
I am working on a current project which I have gotten to work, but I'm wondering what other ways I can go about designing it.
Here's what it needs to do.
When a text message is received from a specific number, I want to fire off a message that repeats at a certain interval for a specific duration.
1. To make this work, I had set my sms broadcast receiver and checked the incoming messages for the number I'm looking for.
2. When found I would start an intent service that would pull out the interval and duration from saved shared prefs, and then fire off a broadcast.
3. The broadcast receiver for this would catch it and use the alarm manager to handle the toast message repetitions.
This all works just fine, I'm wondering if there's a more elegant way of going about doing this or if there's a way that would be better for the system? Any suggestions or advice?
Thanks!