Is there any BroadCast Activity/services for sending an SMS? - android

i want to goes through some condition statement when a user hit a "send sms" button and thus if condition is satisfied then send the sms otherwise abort the composed sms !
can any one help me ?

No there is not broad cast activity to use it when sms is going to send,

This is not possible. Any application can use SmsManager to send an SMS, and such messages cannot be intercepted, except perhaps by custom firmware.
You can't block an outgoing sms. You can find out about it only after it has been sent. And you can do it by registering a content observer for sms, when the sms comes to sent box.

It is good question, when you are working by using any builten application in android, then it gives you some facility upto some extent, but you can't cross the limit.
If You want to control the send button of builten apps then it is impossible. You can't do this in android.

Related

Sending an SMS and waiting for response before sending another SMS

I am trying to make an android application which sends SMS messages automatically.
I want to send the first message and after my Broadcast Receiver receives confirmation that the service was sent, I want to send the next one and so on.
Can anyone tell me how can I achieve this? I tried to create an AsynkTask to send the SMS but I cannot register a broadcast receiver. What approach should I use to accomplish this?
Thanks.
Basically you cannot. Only if your application is accepted as default messaging application by the user then only you can send SMS.
Please refer here and here.
UPDATE:
If you are sending SMS and the version of android is supporting SMS sending, follow this link, it has the answer.

Receive specific SMS and elaborate it with an Android app?

sorry fo my complete ignorance developing an Android.
I'm asking about the feaseability of this pseudocode I would like to implement as native app; let imagine a task that:
when a specific SMS arrive (only those sent from a specific sender number)
possibly (multi-SMS in case of text bigger than 160 chars )
elaborate/format each received SMS:
. save text content on a local db
. print text on a bluetooth printer
. reply to sender with some sort of "ACK" SMS
BTW, what above could be sort of background task, and I would need on foreground a sort of user interface that visualizes received SMS and do some user actions (sending back SMS to sender)
Is all that possible on Android ? Any issue ?
I mean, above all: is possible to "catch" specific SMSs (by example those sent by a specific sender number), living unalterated the usual SMS workflow for ALL other SMSs ?
Sorry for my beginner question and Thanks for your patience
giorgio
www.giorgiorobino.com
Following this link to implement a BroadcastReceiver that will listen for incoming SMS.
Inside your onReceive from your BroadcastReceiver, handle your logic (print/save/..)
It is possible, yes. But not recommended. That being said the way to set this up is to catch the SMS intent, so your app would be started when an SMS is received. Otherwise it would not run at all (as long as you don't have any other interface open). For a code example on the message interception part, see this post. For the database part look up local storage on android phones. Look up on SMS messaging for the reply. Not sure how bluetooth printing would work as I've never done it, but if it's a standard protocol I'm sure there's either built in support or a library for it.

Is it possible to know : Did recipient receive my data SMS message

I'm working on a small application which use data SMS messages.
I know how to manage thé errors during the sending.
I sent several data sms to my contact but I don't know how to know if my data SMS have arrived or not
Can you help me?
When you call SMSManager.sendTextMessage the deliveryIntent parameter tells you whether it was received. This does no mean that the user actually saw it, it just means his network received the text. It may not have been sent to his phone, or it may have been and the user didn't notice the text. There is no way to tell that the user actually looked at it.

Manipulate incoming SMS in Android

How to manipulate certain incoming SMS messages in Android?
I want to change sender number before message will reach Inbox (so all text messages coming from a range of numbers wold be grouped into single conversation).
Can this be done from broadcast receiver of android.provider.Telephony.SMS_RECEIVED intents?
I dont think you can do it. What you get through android.provider.Telephony.SMS_RECEIVED, the data is a copy, so even if you change it wont be changed for other Recievers. You can block it from going to other Broadcasts, but not change it and rebroadcast
What you could do is manipulate using contentProvider of SMS . You will need WRITE_SMS permission
You cannot modify incoming messages in "stealth mode" and you cannot replace broadcast with your fake message without rooting and platform modifications. You can try to play with SMS using content provider but you need WRITE_SMS permission so your intentions would be clear to many.

Android and consume SMS

I write application which will get data from received SMS. This is data only for application and I dont want to user can read this message. Is possible to consume SMS just after get data from them to prevent user from reading this SMS? Thanks for any help.
You will need a sms receiver see http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-sms-messages/
Maybe you need also to delete the received sms.
Yes, this is easy to do. See my answer here for how to do this:
SMS receive with no notification
Once you've confirmed that the SMS is one of your special ones, you just need to call abortBroadcast() to stop it going into the user's inbox:
// Stop it being passed to the main Messaging inbox
abortBroadcast();
You should also be aware that the SMS receiver will not intercept SMS messages sent to the user's Google Voice number, as by default those messages will be downloaded over the data connection and displayed by the Google Voice app. If their Google Voice number is configured to forward the SMSs to the phone then those will be handled fine by the SMS receiver.

Categories

Resources