1

In Android 4.4, My App is not an SMS App but it need to send SMS(multiple times). The thing is that the Sent SMS will be stored in Default SMS App(Hangouts). It would spam/annoy users a lots. I would like the SMS actions are transparent/silently with End-Users.

AFAIK, we may prevent this by setting my App at the moment I send the SMS & change back later. But this is not really an option since end-user flow become complicated & may lead to confusion. another reason is Default SMS App may lose the System Broadcast when my App was set as Default SMS App.

Is there complete solution on this?

Thank you for you support.

user1866128
  • 281
  • 1
  • 3
  • 8

1 Answers1

0

If i am not wrong.. you want to send sms without storing in default sentitems list..????

The task you mentioning is possible without any confusion in the flow...

This can be done by setting the sentIndent in smsmanager to null.

public final void sendTextMessage (String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent)

This will suppress the sentintent thereby avoiding to store in the default sent items...

There is also a previously discussed question regarding this topic in stackoverflow..

How to send SMS from the Android app without making its record in device SMS view?

Check it out...

If you could share the code u use for sending message.. It would be more easy to help for others...

Community
  • 1
  • 1
sam
  • 2,426
  • 2
  • 20
  • 29
  • This doesn't work for me. Below is the current code I'm using. SmsManager.getDefault().sendTextMessage(serverNumber, null, smsContent, null, null); – user1866128 Dec 09 '13 at 09:59
  • Did you tryout by setting highest priority for our app??? for send_sms intent in manifest??? – sam Dec 09 '13 at 10:25
  • already tried but no success ` ` – user1866128 Dec 10 '13 at 04:24
  • It would be so frustrating for you sorry for it. did you tried abortBroadcast()???? after sending mess??? – sam Dec 10 '13 at 04:30
  • 1
    i feel http://stackoverflow.com/questions/20027658/sms-received-in-my-sms-app-and-in-hangouts-although-i-call-abortbroadcast this question will hep you... but there too they said no solution for your situation since hangouts came into play as DEFAULT APP :( – sam Dec 10 '13 at 04:33