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 7879493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:54:26+00:00 2026-06-03T03:54:26+00:00

I have currently a webview in android. But the webview is unable to show

  • 0

I have currently a webview in android.
But the webview is unable to show certain urls that contain youtube/flash videos, mp3’s, mp4’s, 3gp’s and so on….

Is it possible to check if an internal application is able to play those formats.
I.E. if the url forwards to a youtube video then it launches the youtube app (if available), or if the url forwards to an mp3 video then it forwards to the music player.

The url that will be processed is send from an external json, so it is variabel.

Furthermore if the url is just a simple webpage (no application except the webbrowser can process it) then it should be shown in the webview.

I have browsed arround and I came up with this start:

String url = "url here for example youtube.com/watch?v=.....";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);

I was not able to test this part above, but the thing missing in this snipet is, that if the url is just a simple webpage, then I dont want the webbrowser to start, but I just want it to be shown in my simple webview.

Thanks in advance,

  • 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-03T03:54:27+00:00Added an answer on June 3, 2026 at 3:54 am

    You can set WebViewClient to your web view, and ovveride shouldOverrideUrlLoading method.
    If URL ends with .mp3 (your specific format) then start intent or override onReceivedError method and process error.

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

Sidebar

Related Questions

I currently have a webview that when you press a mp3 link, the mp3
I currently have a webview that displays a current site. However, it cuts off
I have an Android app using webview to load and display html pages. But
I am working on an Android App that implements Flash Peer-assisted networking. I have
What I have currently: A wildcard DNS record. So that every subdomain points to
We have a web application that uses dropbox as file storage. We have currently
I currently have a UIWebView that is displayed within a modal view. It is
I want to have a webview that has a single HTML and a single
I've got an issue with WebView on Android 3.1 and higher. I have a
I have a requirement to play YouTube video content from within an Android application

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.