Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8118243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:25:19+00:00 2026-06-06T04:25:19+00:00

In my android application, when I try to parse the spotify web api, the

  • 0

In my android application, when I try to parse the spotify web api, the page return a 404. The URL seems ok to me (http://ws.spotify.com/search/1/album.xml?q=album:’Meteora’+artist:’Linkin Park’), but returns 404.

Here is my code :

        url = new URL("http://ws.spotify.com/search/1/album.xml?q=album:'" + albumName + "'+artist:'" +artistName +"'");

        urlc = url.openConnection();
        urlc.addRequestProperty("User-Agent", userAgent);
        Log.v(TAG_SPOTIFY, "User-agent set: " + userAgent);
        return this.parseSpotifyURI(urlc.getInputStream());

Here is the error :

06-20 16:51:00.846: W/System.err(4962): java.io.FileNotFoundException: http://ws.spotify.com/search/1/album.xml?q=album:'Meteora'+artist:'Linkin Park'
06-20 16:51:00.846: W/System.err(4962):     at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:177)
06-20 16:51:00.846: W/System.err(4962):     at com.micky.scanthings.music.ParseMusic.getSpotifyURI(ParseMusic.java:489)
...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:25:21+00:00Added an answer on June 6, 2026 at 4:25 am

    Alright, my bad. My URL wasn’t encoded in UTF8, so Spotify responded with a 404.
    Solution is to parse the album name and artist that way :

    String myURL = "album:'" + albumName + "'+artist:'" +artistName +"'";
    url = new URL("http://ws.spotify.com/search/1/album.xml?q=" + URLEncoder.encode(myURL,"UTF-8"));
    

    and then do whatever we want with this URL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i try to build an application with xml parser. ex : http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser but i
When I try to export my android application, I get this error message.. [2012-05-02
I try to make an Android application which communicates with a non-standard ISO15693 (NFC-V)
I am creating an Android application that connects to the Fogbugz XML API (sends
i try to parse an rdf file using android.sax and android.utils.Xml methods. My parser
OK, so I am trying to parse this feed for an android application: and
I try add and compile ffmpeg library in my own android application. When I
I'm debugging my Android application using the AVD (Android Virtual Device). When I try
I've been trying to access a website to parse data for an Android application
I keep hearing that Android applications should try to limit the number of objects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.