Gnat
unread,Apr 29, 2011, 1:05:05 PM4/29/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SMS Popup for Android
Hello,
I came across this project as I was trying to find some example SMS
applications. I've got a situation where we want to have an app on an
android phone accept special text message codes, forward them to a
website for an online contest. I'm an experienced dev, but not an
Android experienced developer so I'm getting lost in the details that
I would know if I had been working on the platform for longer than I
have (a couple days so far).
I tried modifying the SMSPopup code so that the SMS Service would do
the forwarding, which it does, however if its handling a high volume
it will respond to previously handled messages till all 'queues' have
been handled it seems. This is hard to explain.
I've written an app that spams the test device with SMS messages at a
300ms interval to test what happens if many people text the device
simultaneously. With two emulators running this 'spam' app, and one
emulator running my modified version of SMSPopup I run the following
test.
I ask each spam emulator to send 24 text messages each 350ms apart.
They do that, the SMSPopup modification catches it and where it
normally initiates the activity, I have it respond with an SMS of
'Entry Accepted', forward to and then forward to an http url. When
watching the spammers, one of the devices got 38 responses (which kept
going higher and higher until the second device hit the 24 response
mark).
So I'm thinking there's something I don't understand about how the
service / android works such that I'm not processing one message at a
time or something.
Can anyone enlighten me on how I could accomplish our attempt at
forwarding a sms message to a http gateway and responding with a SMS
message back?
Thanks,
Nathanael