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

  • SEARCH
  • Home
  • 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 7994283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:05:34+00:00 2026-06-04T14:05:34+00:00

I am trying to open an URL with androids MediaPlayer Class by using: MediaPlayer.create(pContext,

  • 0

I am trying to open an URL with androids MediaPlayer Class by using:

MediaPlayer.create(pContext, Uri.parse(m_sUrl));

i have allready replaced all the Spaces in m_sUrl String with %20 by using:

m_sUrl = m_sUrl.replace(" ", "%20");

But the MediaPlayer.Create Method return null to me. So there seems still to be something wrong by parsing the m_sUrl String.

Thats the URL string i am trying to stream:

http://www.se.hs-heilbronn.de/~poneu/files/musik/oeffentlich/2007-03-10/01%20-%20L.v.%20Beethoven-%20Ouvertüre%20Nr.%203%20zur%20Oper%20-Leonore-%20op.%2072a.mp3

so as you can see, it seems to be the ü character. Anyone know what i have to use in an valid url for ä ö ü ß and so on?

  • 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-04T14:05:35+00:00Added an answer on June 4, 2026 at 2:05 pm

    Use URLEncoder and you have to keep in mind to encode only unsafe character:

    String query = URLEncoder.encode("depeche mode", "utf-8");
    String url = "http://stackoverflow.com/search?q=" + query;
    

    in the exemple that i mentioned below the unsafe character is the space that will be transformed to %20

    hope this will help

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

Sidebar

Related Questions

I am trying open a new window using url.Action. And the new Window url
I'm trying to open this url using a WebBrowserTask in WP7, and it doesn't
Possible Duplicate: Open url in new tab using javascript I'm trying to make it
I am trying to open a process handle in C# using the OpenProcess function
I am trying to open one window from another using makeKeyAndOrderFront. The new window
I'm trying to open the MessageStore of a user using MAPI. The weird thing
I'm new to android... having trouble trying to open a URL from a live
I am trying to parse a Rss2.0 feed on Android using a Pull parser.
I'm trying to create an app that allows the user to open the android
I'm trying to create a simple app, whose main task is to open the

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.