I am trying to visualize the spectrogram of a sound fragment. I am using a vertical scroll area, with panels as rows. On the panels are labels. When I had a maximum of 200-300 lines in the list, I did not have problems. About 30 lines fit on the screen at a time. But when the number of lines reached 1000 or more, an error began to appear.
I think this is due to some limitations. How can I solve this problem. Maybe I'm not initializing the scroll area correctly at the very beginning, I don't understand well what parameter needs to be set at the time of initialization.
Error:
** Activity (spectrnorm) Resume **
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 751464 bytes
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3991)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6550)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857)
Caused by: android.os.TransactionTooLargeException: data parcel size 751464 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:764)
at android.app.IActivityManager$Stub$Proxy.activityStopped(IActivityManager.java:4649)
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3975)
... 7 more
Initialize:
Dim scvS as ScrollView
....
scvS.Initialize(50000)
Activity.AddView(scvS, 0%x, 11%y, 100%x, 82%y)
PanelS=scvS.Panel
....
For z=0 To Nlst-1
panel0.Initialize("")
panel0.Height=PH
panel0.Width=PanelWidth
panel0.Color=Colors.White
....
panel0.addView(Lbl,0,0,10%x,3%y)