I've written an app that sorts Poweramp playlists, and it works all right. The only issue I'm running into is performance, and I think that's because I call getContentResolver().update
on each row. Ideally, I'd love to be able to use a SQLite transaction. applyBatch
and bulkInsert
won't work, as I need to have a WHERE clause with each row update--I essentially have to update an index table, which has multiple playlists and their songs.
From what I understand, I won't be able to access Poweramp's database directly through SQLite, as I've read I need to have the same app signature or something? Maybe someone can clarify that. It seems like my only hope is to maybe override ContentResolver's applyBatch method or add my own (from this thread)? Although, I'm not entirely sure how to override that... the code in that thread already seems to have overridden the class somehow. I also don't think it uses an outside DB.
Any hints as to where I should look, or if there's already an answer out there, that'd be excellent.