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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:31:17+00:00 2026-05-24T02:31:17+00:00

How to embed a video from youtube or yahoo videos to an android application

  • 0

How to embed a video from youtube or yahoo videos to an android application
I’m using Phonegap so mainly I’m writing javascript then the code is wrapped to be native code

But I’m only writing JS & HTML5

  • 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-05-24T02:31:18+00:00Added an answer on May 24, 2026 at 2:31 am

    You most likely want to use a WebView with the link pointed at the embedded video hyperlink.

    Something along the lines of the following:

    <LinearLayout ... >
         ... my content
        <WebView android:id="@+id/webView1" ... >
            ...
        </WebView>
    </LinearLayout>
    

    Then use the following hook in the code (mostly from the WebView docs):

    WebView webview = (WebView) activity.getViewById(R.id.webView1);
    
    // Simplest usage: note that an exception will NOT be thrown
    // if there is an error loading this page (see below).
    webview.loadUrl("http://slashdot.org/");
    
    // OR, you can also load from an HTML string:
    String summary = "<html><body>You scored <b>192</b> points.</body></html>";
    webview.loadData(summary, "text/html", "utf-8");
    // ... although note that there are restrictions on what this HTML can do.
    // See the JavaDocs for loadData() and loadDataWithBaseURL() for more info.
    

    Don’t forget

    <uses-permission android:name="android.permission.INTERNET" />
    

    in the manifest.

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

Sidebar

Related Questions

I want to embed some youtube videos at my site using Video.Flash helper. Microsoft.Web.Helpers
I have a requirement to play YouTube video content from within an Android application
Here is an example of the embed code from a Youtube Video: <!DOCTYPE html
i'm trying to embed youtube video into my iphone application. I'm using UIWebView and
Here is the code that I use to embed video from YouTube to my
So in my app, I embed a Youtube video using the following code: -
I have a media field through which I both embed video files from Youtube
I let users embed videos from Youtube, Google, Vimeo etc. I thought about the
I am retrieving video embed urls from my database. In my database, my videos
I retrieve embed code videos from my database. However, in db they are 650

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.