My gazillionth answer
You did not include the description in your hashed signature.
My second answer
As mentioned before in one of my comments, you're code is causing a MalformedURLException
. You don't see this because you're doing no exception handling within your SwingWorker
subclass. If you add exception handling as suggested here, you'll see that.
My first answer
You're missing an &
in your parameter list:
String params = "method=playlist.create&title=" + title+ "api_key=" + ...
Should be
String params = "method=playlist.create&title=" + title+ "&api_key=" + ...
It's probably a good idea to read the answer of the request (connection.getInputStream()
etc.) and check what the issue is.