android-smsmms
android-smsmms copied to clipboard
Event for MMS sent work but don't work if MMS not send
Hello
thank you for your library.
I use them to send MMS and it's work good. When i send MMS, I receive Broadcast event to told me that this mms correctly send action=com.klinker.android.messaging.MMS_SENT
But if i put phone in AirPlane mode, i didn't receive event to told me that MMS not send like i can have with SMS.
Is it normal ?
MMS uses data, in airplane mode there is no data. So it sounds normal. Are you using version 5.0.1?
I use 5.0.1 and i try with 5.0.2 too. I know that in AirPlane mode we can't sand sms, but my question is why i didn't receive action=com.klinker.android.messaging.MMS_SENT in fail state.
If i done the same with sms, i receive a fail event that sms not send, but not with MMS.
Maybe it's normal ? Maybe phone keep mms for later ?
So after some test, it's look like in airplane mode phone keep mms to send it later. That's why i didn't receive event
For some reason when I upgraded to the 5 version, I get this exception when I send a MMS
--------- beginning of crash
2018-10-02 13:13:30.320 4010-4010/com.klinker.android.send_message.sample E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.klinker.android.send_message.sample, PID: 4010
java.lang.RuntimeException: Unable to instantiate receiver com.klinker.android.send_message.MmsSentReceiver: java.lang.InstantiationException: java.lang.Class<com.klinker.android.send_message.MmsSentReceiver> cannot be instantiated
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3013)
at android.app.ActivityThread.-wrap18(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1557)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Caused by: java.lang.InstantiationException: java.lang.Class<com.klinker.android.send_message.MmsSentReceiver> cannot be instantiated
at java.lang.Class.newInstance(Native Method)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3008)
at android.app.ActivityThread.-wrap18(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1557)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
I'm surprised that you are not getting this. Can you help me?