Releases: klinker41/android-smsmms
v5.2.5
v5.2.3
v5.2.0
v5.1.2
v5.1.1
v5.1.0
5.0.0
This release improves threading on the BroadcastReceivers
. If you are implementing or overriding any of the behavior for receiving messages, updating the "sent" status on messages, learning when a message has been marked as delivered, etc, the APIs for these receivers have changed.
For example, if you wanted to update the sent status of a message in your own app's database (outside of the share SMS/MMS database on your phone, which the SentReceiver
already does for your), you could make a receiver like this:
public class MySentReceiver extends SentReceiver {
@Override
public void onMessageStatusUpdated(Context context, Intent intent, int resultCode) {
// your code to update the status of the message. It will be run in a background thread.
switch (resultCode) {
case Activity.RESULT_OK:
...
}
}
Basically, if you were overriding the onReceive
method of the SentReceiver
, MmsSentReceiver
, or DeliveredReceiver
, you will move that implementation to the onMessageStatusUpdated
method instead.
Update to OkHttp 3.0
v4.2.0 update to v4.2.0
Crash fix for specific devices
From PR #96
Explicitly define "sent" and "delivered" broadcasts
You can now use the following methods to explicitly set up the "sent" and "delivered" broadcasts for SMS/MMS, instead of relying on the AndroidManifest
entries:
Transaction#setExplicitBroadcastForSentSms(Intent)
Transaction#setExplicitBroadcastForSentMms(Intent)
Transaction#setExplicitBroadcastForDeliveredSms(Intent)