I'm developing an app where the user selects contacts from his/her address book and then the app prevents them from texting said people. My problem is that I can't find any code to prevent texting people. I've found apps that prevent you from calling certain contacts but I'm more focused on texting. Any help would be appreciated.
-Thanks
I believe it's not possible for reasons specified at Android Broadcast Receiver for Sent SMS messages?
It seems that no Broadcast is made for outgoing SMS, so unlike calls, you can't adjust the content (number) or prevent it completely.
Related
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.
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.
Hello all i will explain my question a little more. I'm not native english speaker. So maybe my question is on the internet but when i search i only found something i already know.
I have a Xperia U with the illumination barre. I use it as a notification for sms. I already know how to receiver SMS and the event of unlock screen
What i will now is 2 thing.
1- Possibility to know if the last sms was read by the user or not(My apllication is just a notification center and not a sms handler so the sms reading is doing by official app or user app like gosms)
2- Possibility to know if phone is already unlock, i will remove notification if it is.
I'm not very clear but i find this difficult to explain if you don't undestand the question say it i will reformulate it.
Possibility to know if the last sms was read by the user or not(My apllication is just a notification center and not a sms handler so the sms reading is doing by official app or user app like gosms)
There is no concept of Read in SMS. You can get a delivery notification for when it reaches the user's device, but you can't tell if the user read it or not.
Possibility to know if phone is already unlock, i will remove notification if it is.
You will need to dynamically register a BroadcastReceiver for ACTION_SCREEN_ON and ACTION_USER_PRESENT broadcasts.
I am working on android application in which my service will be continuously checking whether sms or contact apps are on display or not.
can anybody help me to find out how to get know which contact or senders sms is on display.
thanks.
Fortunately, this is not possible, for obvious privacy and security reasons.
My app is able to successfully intercept incoming SMS with a special code. Increased the priority in the manifest intent filter to suppress the broadcast for such special messages using abortBroadcast(). On receiving such special sms the app is supposed to send back an SMS with some info(lets say current location). I have been successfully able to achieve this as well.
The problem is, few of my customers might be on a prepaid plan. This means everytime they send an sms, a system popup comes up telling the remaining balance in their account.
Suppressing the incoming sms broadcast has solved half the problem because my customers dont want to receive these special sms in their inbox nor they want the notification. The problem that remains is how to suppress the outgoing "remaining balance" system popups? Is there a way(for non rooted android) to suppress these notifications?
One way is yes go to setting and manually disable it. That will disable it for all outgoing sms. I dont want my users to do that. I want to programatically suppress only those popups that are a result of sms sent by my app.
I am trying to add this feature for a legitimate use and my customers will be aware of this behavior. I am ok if the customer has to agree to any such settings during the install time(just like device admin policy manager or other usual app permissions).
Any suggestions?
I installed Balance Update / USSD Blocker from Play Store.... so far seems to be working. Available here
https://play.google.com/store/apps/details?id=com.melkote.quietbalance
Is there a way(for non rooted android) to suppress these notifications?
AFAIK, there is nothing in Android for this. Most likely, this popup was added by device manufacturers and carriers for their specific plans. You are welcome to talk to each device manufacturer and each carrier to determine if they offer any sort of API for adjusting this behavior.
How can we hide/change sender's mobile number while sending a SMS to a receiver.
For example if I send a sms to some number 1234567890, the receiver can receive my sms without knowing my number.
I had gone through in couple of Questions in Stack Overflow regarding this and it was mentioned that it is not possible to hide / change the sender number.
But I can see some apps in android market which hides the sender SMS number.
Note : In the app, they had clearly mentioned
Your network-operator must support hiding your caller ID.
I want to know if Network Providers in the US support this option or not. Also how can I find out my Network provider supports this and what API I have to use for hiding the sender's mobile number?
It would be awesome if I got any clue in this
Here are the existing questions
change the sender number when sending sms
How to change sender mobile number in Android SMS service
Here's the App Link
SecretSheep
Mr.Hide
No.
But what you can do is use an SMS gateway which enables you to hide the callerID or which gives it a specific name. Just an alternative suggestion.
for example take that site, http://api.textmagic.com/ -> http://api.textmagic.com/https-api/textmagic-api-commands#send
It depends on the providers. Mostly they don't support this.
http://learntelecom.com/sms-fraud/
As described in this document SMS faking is impossible without considerable efforts by the technical staff running the SMS-C. In other words, it does not happen either by accident, faulty configuration data or as the result of raw text messages received from the Internet. It happens because in most cases it requires a software patch on the SMS-C. Therefore; any instances of this happening are as the result of direct action by SMS-C staff, and probably in conjunction with assistance from the staff of the Associated PLMN.