File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Video help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Video help" Watch "Video help" New topic
Author

Video help

Alex Vandusen
Greenhorn

Joined: Jun 14, 2011
Posts: 13
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
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
It's not a web app it's an android app or is webview for android apps
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16624

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Alex Vandusen
Greenhorn

Joined: Jun 14, 2011
Posts: 13
I found the webview widget but I can't figure out how to use it. And also would have to add a webview widget for each link??
 
 
subject: Video help
 
Threads others viewed
This is completely meaningless and shameful promotion
controlling slug problems in the garden, organically
capture a video of a video
Youtube embed
$900 dandelions - sell your weeds!
Two Laptop Bag