aspose file tools*
The moose likes Android and the fly likes Video help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
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: 17249
    
    6

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??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Video help
 
Similar Threads
This is completely meaningless and shameful promotion
capture a video of a video
$900 dandelions - sell your weeds!
Youtube embed
controlling slug problems in the garden, organically