登录页面后,我正在使用 JobIntentService 从服务器下载数据并通过 BroadcastReceiver 将数据传递给活动。对于较少量的数据,它可以正常工作,但是当我处理实时数据时,它会给出以下异常:
Caused by: android.os.TransactionTooLargeException: data parcel size 1450704 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:1127)
at android.app.IActivityManager$Stub$Proxy.broadcastIntent(IActivityManager.java:3893)
at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1009)
at android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:444)
I passing data like this from service class :
Intent intent = new Intent(ACTION_CHECK_DOWNLOADSTATUS);
intent.putExtra("response",response);
sendBroadcast(intent);
But it gives TransactionTooLargeException..
How to prevent this?
How do I pass large amount of Data ??
Pls suggest...