Android Question I got this error and I can't fix it

Espinosa4

Active Member
Licensed User
Longtime User
Hi,

I have this error in my app. Everthing works well but sometimes I get this error.

I'm using Custom List view and when it has in my case 399 lines is when the problem appears but with 100 everything works fine.

In clv_longclick event I'm opening an imagen


Any idea?

Using clview as grid is a bit slow... is it possible to accelerate?

Thank you in advance



--------- beginning of main
** Activity (imagen) Create **
** Activity (imagen) Resume **
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 560116 bytes
at android.app.ActivityClient.activityStopped(ActivityClient.java:88)
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:143)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: android.os.TransactionTooLargeException: data parcel size 560116 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:643)
at android.app.IActivityClientController$Stub$Proxy.activityStopped(IActivityClientController.java:1248)
at android.app.ActivityClient.activityStopped(ActivityClient.java:85)
... 9 more
Copying updated assets files (346)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
Database size = 65536
** Activity (main) Resume **
PSX_20231025_081332.jpg
 
Last edited:

Alexander Stolte

Expert
Licensed User
Longtime User
I'm using Custom List view and when it has in my case 399 lines is when the problem appears but with 100 everything works fine.
The list is too large. Use LazyLoading.
 
Upvote 1

Espinosa4

Active Member
Licensed User
Longtime User
The list is too large. Use LazyLoading.
Thank you so much for your help.
Now it works much better than before.


Cheers
 
Upvote 0
Top