Prevent sms from going to outbox - android

I am making an app that sends an SMS programmatically.
I don't want it to pop up in the built in SMS app.
Incoming SMS doesn't matter for now.
Is there a way to prevent an sms from going to the 'outbox'?
This is how I send:
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);

After KitKat, no. See the post here: http://android-developers.blogspot.com/2013/10/getting-your-sms-apps-ready-for-kitkat.html
Before KitKat, it won't go to the "Outbox" so it isn't an issue.
You can try a third-party solution like www.superdupersms.com (that's the only one I know of, and I'm a part of the development team).

Related

how to send image to a contact number in android

I am able to send normal message to a number through SmsManager. But I want to send image(mms) along with text message. I know it can be sent through Intent with ACTION_SEND, but I am using SmsManager. But searching about it, some sources say it might not be possible. But has someone made it possible?
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, null, null);

detect the application that sent sms in android

I'm new to android Develpoment
my first application is ant-spy
I try to detect the application that sent sms (that is listening to send an sms )
I ask you to help me this application and if possible give me a source code for DECT application waiting to send sms or a code that resemble.
Thanks.
This code is used to send sms:
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(smsNumberToSend, null, smsTextToSend, null, null);

sending SMS per app in android - is there any technical difference to sending manually?

I have an app which sends normal text SMS to a device to turn it on or off.
I just use the normal sms method:
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);
In hundred of cases the SMS sent by the App do exactly the same as sending SMS manually. However, I have one user who claims, that sending SMS manually has a different effect than sending the SMS from within the app. In fact he claims that with the App the device does not function while sending SMS manually works. What is even stranger is the fact, that the device responds in both cases with a confirmation SMS.
Is that technically possible? Are there any special technical settings that one could change in Android phones when sending SMS? I really can't imagine that there can even be a difference.
many thanks for all your hints
I think you're trying to solve this other way around.
If device sends a confirmation SMS but doesn't function as expected, you probably want the logs from the device.
The actual answer: No. SMS application is using the same API.

Android programming auto sms

I have an application which sends an auto SMS when I receive an SMS, or missed cal etc. So, if the same application is there in the opposite person's phone, then the the process of sending SMS continues, which should not happen. How to avoid this?
In fact, how to detect an SMS, which is sent by user or auto replied?
Please try to explain programmatically as clearly as possible..
SmsManager sm = SmsManager.getDefault();
sm.sendTextMessage(phoneno, null,"sam", null, null);

Send an SMS without the delivery report

I used this good tutorial http://mobiforge.com/developing/story/sms-messaging-android for sending SMS in my android app.
If I do not want the provider to send me the delivery report when sending a sms, is it enough to set the delivery intent to NULL?
Like instead of:
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);
use
sms.sendTextMessage(phoneNumber, null, message, sentPI, NULL);
or is there an additional setting to prevent SMS delivery reports?
Are you getting an SMS (or a System-Message) from your Provider, which tells you that the SMS was successfully send? If so, you might activated some "alert when successfully send" thing in your SMS app.
Otherwise yes, if you don't want the Intent, just pass 'null'. But i don't know why you'd do that.

Categories

Resources