Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

[Android] Rearrange Tracks inside a Playlist

On my iPod I can manually move my songs around that are in my playlist, but I can't do the same on my phone which is what I mostly use. It would be easier to have that option on all devices.

Updated on 2018-07-11

Hey!

 
The Spotify Community team here.
 

We're pleased to confirm that this feature should now be available to all Android users.
We'd recommend double-checking that you're running the latest version of Spotify.
 
Once again, thanks for showing your support here in the Community.
/M
Comments
mtchemnerd757

C'mon Spotify! Clearly this is a common request. What's the holdup? This thread is 3 years old now!

aramando

@Borowscy You were on the right track asking about my list sizes; I've done a little digging and it's an out-of-memory execption - the app is crashing and restarting. This obviously also explains the janky performance.

AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
AndroidRuntime: Process: net.czaarek99.spotifyreorder, PID: 3741
AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
AndroidRuntime:        at android.os.AsyncTask$3.done(AsyncTask.java:318)
AndroidRuntime:        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
AndroidRuntime:        at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
AndroidRuntime:        at java.util.concurrent.FutureTask.run(FutureTask.java:242)
AndroidRuntime:        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
AndroidRuntime:        at java.lang.Thread.run(Thread.java:761)
AndroidRuntime: Caused by: java.lang.OutOfMemoryError: Failed to allocate a 1638412 byte allocation with 237752 free bytes and 232KB until OOM
AndroidRuntime:        at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
AndroidRuntime:        at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
AndroidRuntime:        at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:646)
AndroidRuntime:        at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:622)
AndroidRuntime:        at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:660)
AndroidRuntime:        at net.czaarek99.spotifyreorder.util.DownloadImageTask.doInBackground(DownloadImageTask.java:22)
AndroidRuntime:        at net.czaarek99.spotifyreorder.util.DownloadImageTask.doInBackground(DownloadImageTask.java:15)
AndroidRuntime:        at android.os.AsyncTask$2.call(AsyncTask.java:304)
AndroidRuntime:        at java.util.concurrent.FutureTask.run(FutureTask.java:237)

 I'm also seeing this. I'm pretty sure I have around 320 playlists, so the app probably shouldn't be asking for playlists 350-400.

D Retrofit: ---> HTTP GET https://api.spotify.com/v1/me/playlists?limit=50&offset=350
D Retrofit: <--- HTTP 200 https://api.spotify.com/v1/me/playlists?limit=50&offset=350 (202ms)
V AlarmManager: Triggering alarm #0: Alarm{f52872b type 3 when 1970399948 android}operation =Intent { act=android.intent.action.TIME_TICK flg=0x50000000 }
D NetdConnector: RCV <- {601 limit alert globalAlert wlan0}
I QtiTetherService: limitReached Alert received limitName: globalAlert on Interface: wlan0

So in my case the initial view in your app is having to show about 320 playlists. That is quite a lot, but not a crazy amount. Incidentally I remember that my phone, the OnePlus 3, has a lot of RAM (6GB) but is also known for placing some slightly strange and arbitrary limits on its use, so it could be that my phone is more susceptible to memory limit issues than yours. However I do think that it should be able to handle lists of a few hundred items with ease. I wonder if you need to work on memory management/optimisation?

Borowscy
aramando

@BorowscySorry buddy, it's still really struggling with my playlist list and long lists. In fact it just keeps restarting, every few seconds. If I'm quick and tap on a playlist with a smaller number of tracks then it loads that and is stable, but if I try to load my long list (352 tracks) or just leave it to display the list of playlists (even if I don't try to scroll down it) then the app will restart before long. I'm definitely running 1.0.2 and I cleared app data as well after updating for good measure.

Borowscy

@aramando It's not the tracks that are causing the app to struggle. It's the amount of playlists that you have. For some reason the app slows down when it has to download over 300 playlist images. I thought I fixed it by limiting it to downloading 5 images at once but that's appearently not enough.

 

If you could post a new stacktrace I would appreciate it.

 

EDIT: After further thought I am fairly sure I know why it's still not working. I forgot to change something. I'll look into it more tomorrow.

grbsoft

Well done @Borowscy! Just downloaded v1.02 and it works smoothly on Galaxy Note 4 just as v1.0

 

I have about 30 playlists and a few have about +200 songs and it was no problem for Sporder to load it (shows a litte green update bar at the top for 2 seconds) perhaps there are other circumstances at stake here in @aramando device/configuration. On a Galaxy Note 4 with Android 6.0.1 runs great but this is not the average Android device out there (3GB RAM)

 

I wish I could help you from here, started to fiddle around with Android Studio (although I have no idea yet on how to use it) to see what interesting things can be done with the beta Spotify API. Never made an Android app before but I'm sure I can do better than Spotify devs hehehe

formerfatboys

Impressive, but sad that a standalone app is needed for Spotify to actually work the way it should out of the box and the way it does on iOS.

aramando

@BorowscyI notice you've uploaded a version 1.0.3 - I've updated and it's working much better now! This is excellent work, well done.

 

I'm still having occasional problems with crashing and restarting when viewing the main playlists view, but this has taken the app from being unusable to totally usable for me. Thank you!

Borowscy

@aramando I must've uploaded an old apk for version 1.0.2 without the fix. I'll look into why it's still stuttering in 1.0.3 once I have a better icon for the app. The current one kinda sucks imo.

grbsoft

@Borowscy Don't worry, the icon is fine. It resembles Spotify's style under a different view.

 

Im trying to find it in Google Play and it isn't there, instead suggest me thousands of "spider" (similar to sporder) apps 🙂