Android Question Error afther loading song in Spotify

andredamen

Active Member
Licensed User
Longtime User
In diverse modules of my app I call Spotify. No problem. It plays the song. Now I made a module where there is a list of songs in a CustomListView. When I click on a song it plays on Spotify. So far so good. In the meantime my app craches and I get this error :

** Activity (main) Create (first time) **
*** Receiver (httputils2service) Receive (first time) ***
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (qrkaartinvoer) Create (first time) **
** Activity (qrkaartinvoer) Resume **
** Activity (qrkaartinvoer) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (maakqrkaartjes) Create (first time) **
** Activity (maakqrkaartjes) Resume **
SELECT * FROM data where rownr = 1835

B4X:
https://open.spotify.com/track/2HaOEZq3sSUHGdZZQg6xzy
=====>>>> the https is also in the error. I put it here in code so it will not play by reading this !

** Activity (maakqrkaartjes) Pause, UserClosed = false **
Sleep not resumed (context is paused): b4a.example3.customlistview$ResumableSub_PanelClickHandler
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 951308 bytes
Bundle stats:
android:viewHierarchyState
android:views
PersistableBundle stats:
[null]
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:146)
at android.os.Handler.handleCallback(Handler.java:995)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loopOnce(Looper.java:273)
at android.os.Looper.loop(Looper.java:363)
at android.app.ActivityThread.main(ActivityThread.java:10060)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
Caused by: android.os.TransactionTooLargeException: data parcel size 951308 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:661)
at android.app.IActivityClientController$Stub$Proxy.activityStopped(IActivityClientController.java:1596)
at android.app.ActivityClient.activityStopped(ActivityClient.java:112)
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:135)
... 8 more
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
*** Receiver (httputils2service) Receive (first time) ***
** Activity (main) Resume **



Is there a relation with CustomListView? How can I solve this?

In crashes in:

B4X:
Sub clv1_ItemClick (Index As Int, Value As Object)

        
        txt = "SELECT *  FROM " & Main.DBTableName  & " where rownr =  "& Value & " "
        Log(txt)
        Cursor1 = Main.SQL1.ExecQuery(txt)
        Cursor1.Position=0
        Main.SpotifySong = Cursor1.GetString("spotify")
        Log(Main.SpotifyOpen & Main.SpotifySong)
        StartActivity(Main.p.OpenBrowser( Main.SpotifyOpen & Main.SpotifySong))

End Sub
 
Last edited:

andredamen

Active Member
Licensed User
Longtime User
Yes Erel. This is the problem. When mij clv has more then 300 item the crash is there. Less then 300 it works perfect. I try lady loading.
Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…