我的应用程序同时发送100条短信。它可以在不同的API级别完美运行,但在API 27
上崩溃。当我触发我的sendSMS
方法时,有时会因以下错误而崩溃。我在 SO 上搜索了几种解决方案,但没有找到解决方案。请给我非常具体的解决方案,因为我是新手。抱歉,我的编辑不正确。
Process: co.miaki.smsbooster, PID: 6736
java.lang.RuntimeException: Could not read input channel file descriptors `enter code here`from parcel.
at android.view.InputChannel.nativeReadFromParcel(Native Method)
at android.view.InputChannel.readFromParcel(InputChannel.java:148)
at `enter code here`android.view.IWindowSession$Stub$Proxy.addToDisplay(IWindowSession.java:804)
at android.view.ViewRootImpl.setView(ViewRootImpl.java:742)
at `enter code here`android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:359)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94)
at android.widget.Toast$TN.handleShow(Toast.java:500)
at android.widget.Toast$TN$1.handleMessage(Toast.java:404)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6600)
at java.lang.reflect.Method.invoke(Native Method)
at `enter code here`com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:518)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:821)