the most "stable" is probably sending an sms with an intent. no permissions required. uses system resources
if you're sending messages with code, there is no guarantee google will continue to allow it.
in any case, read this link:
Google has changed their policy regarding the following permissions: READ_SMS, SEND_SMS, WRITE_SMS, RECEIVE_SMS READ_CALL_LOG, WRITE_CALL_LOG, PROCESS_OUTGOING_CALLS Only the default phone or messaging apps can use these permissions...
www.b4x.com
here is what i use to send an sms:
Dim sms As PhoneSms
Dim phevent As PhoneEvents
phevent.Initialize("phevent")
sms.Send("99999999", "this is an sms")
Sub phenvent_SmsSentStatus (Success As Boolean, ErrorMessage As String, PhoneNumber As String, Intent As Intent)
ToastMessageShow("Text sent to " & PhoneNumber & Success, False)
End Sub
Sub phevent_SmsDelivered (PhoneNumber As String, Intent As Intent)
ToastMessageShow("SMS delivered to " & PhoneNumber, False)
End Sub
)
to read sms, you'll need a receiver:
Hi, I am trying to Intercept / Read an SMS so I can view the message in my app. (This app won't be going on Google Play). I can send the SMS from my app, and that part works fine. I have been using the SmsInterceptor method in the past and it has worked fine, as per below. Sub Service_Create...
www.b4x.com