Android Code Snippet One SMS module, all inclusive

I had these problems using the standard tools:
1. Not possible to send SMS longer than 160 characters.
2. Receiving SMS with more than 160 characters was split into several events.
3. Sent and delivered events was not matched with a sent SMS.
4. Sending SMS longer than 160 characters resulted in multi sent and delivered events.
5. Not possible to add extra information to sending SMS to uniquely identify the sent and delivered reports.

After searching all forums I have cut and paste this module that includes all I need.
1. One function to send single and multiparts SMS.
2. One event to receive single and multi parts SMS.3. One event to receive sent and delivered status after sending SMS.
4. One sent and delivered event for every sent SMS.
5. Send function with extra info that is returned in sent and delivered events.
6. Optional sent and delivered report for every sent SMS.

Thanks to #Sorin Pohontu,
http://b4x.com/android/forum/threads/phonelibrary-updated-phonesms-send.52501/#post-351025
and #Erel,
https://www.b4x.com/android/forum/t...sms-messages-in-the-background.20103/#content
 

Attachments

  • oneSms.zip
    454.8 KB · Views: 683

asales

Expert
Licensed User
Longtime User
Very nice!

I am using a Dual SIM phone.
It's possible to choose which SIM will send the SMS?
 
Top