Ahmed
Ahmed

Reputation: 2266

Sending Too much messages programmatically in Android jellyBean

I'm trying to send Text messages to different contacts in a bulk. The contacts are several hundred and i'm reading them from a text file. Now when my app tries to send messages , A Dialog Appears telling

App is sending too much messages => Allow , Deny

I've studied several forums that it's a restriction introduced in JellyBean to prevent malicious activity and it can't be undone without rooting your device and running some weird scripts. Is there a fix to this problem? if there isn't any fix , then can we Programatically click Allow button on that message dialog within our app?
Thanks in advance.

Upvotes: 1

Views: 805

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006664

Is there a fix to this problem?

Send fewer messages.

Or, send the messages at a slower rate.

Or, use some sort of online SMS gateway to send the messages, perhaps through a serve of yours, rather than sending them through Android's SmsManager. You can find some of these by searching for online sms gateway on your favorite search engine.

can we Programatically click Allow button on that message dialog within our app?

No. The point behind the block is so that the user gets a vote as to whether your app can spend quite so much money (or SMS allotment from a post-paid plan) on the user's behalf. Bulk SMS is not designed to be done from Android, but rather from an online SMS gateway.

Upvotes: 2

Related Questions