I want to add YouTube videos to my app but I'm not sure how to go about this. What are some ways I can I add YouTube videos to my app. Should I download them all or just use links.
Also if I were to add photos and large text files would I have to use a database if so how would I go about that
Hardik Trivedi
Ranch Hand
Joined: Jan 30, 2010
Posts: 252
posted
0
Use Webview.
Youtube provide link to embed it in your web application. And Webview supports all html tag.
Alex Vandusen
Greenhorn
Joined: Jun 14, 2011
Posts: 13
posted
0
It's not a web app it's an android app or is webview for android apps
Alex Vandusen wrote:It's not a web app it's an android app or is webview for android apps
Yes, a WebView is just a widget in your Android UI. Unfortuntately, you cannot download videos from YouTube, and the URL links to the videos on YouTube actually call a PHP script which is private.
So you have to use the WebView widget in your Android UI and set the WebView's html to link to the video and have it play on the screen.