Thursday, May 27, 2010

[android-developers] smsc

Hello,

After a long research I came to the conclusion that blocking outgoing
sms messages isn't possible at the moment in Android, however I really
need this functionality and an idea pop up - to remove manually the
SMSC record at the system level and when I need to send a sms to give
the SMSC address to the SmsManager and it will use it to send the
message, it actually has a parameter for this.

But it seems that this doesn't work, when I try - I get
GENERIC_FAILURE with errorCode -1. I really thought that if I call
SmsManager.getDefault().sendMultipartTextMessage with null value for
the scAddress it will take it from the RIL interface, but it looks
like it's sending the PDU data with no smsc record there, leaving it
to the native implementation to handle it, and it does it in a
different way...

So my question is - how can this parameter (scAddress) be used for
sending messages? Do I miss something here, it's in the API after
all..

Regards,
a.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment