Does Android support videos played when downloading?

by quill » Thu, 13 May 2010 17:01:31 GMT

Sponsored Links
 Hi all,
When I am  downloading a video from internet,  I want to play the
video, does Android support this? How can I do it?


Does Android support videos played when downloading?

by quill » Fri, 14 May 2010 09:28:54 GMT

 Anybody help?


Sponsored Links

Does Android support videos played when downloading?

by Mark Murphy » Fri, 14 May 2010 09:35:22 GMT


Yes, Android supports streaming video. You "do it" by writing an Android
activity that uses either VideoView or a combination of MediaPlayer and
a SurfaceView. Your video has to be in one of the supported formats: 

and, at least for MP4 files, they have to be "safe for streaming":

Other Threads

1. showing cursor data in a listview with subsection headings

> So i have two row layouts, row_author.xml & row_book.xml. I detect

That's going to be a bit icky.

I have a set of adapters in my CWAC projects (
that implement patterns of modifying existing adapters. You may be able to
use similar techniques here.

Basically, you need an Adapter that is aware of your header/content
business rules. For example, getCount() needs to return the right number
of rows -- the sum of your total # of books and your total # of author

I have tended to do this via the decorator pattern, creating a wrapping
Adapter that handles all of the conversions. For example, I have a
MergeAdapter that stitches together Views and other Adapters into a single
contiguous whole.

So, I'm fairly certain it is possible to create an Adapter that implements
your desired features, but it may be several dozen lines of code.

Mark Murphy (a Commons Guy)
Android App Developer Books:


2. Android pricing

On the Android store, how often can a developer submit price changes
to his app? Is there a limit for the number of versions a developer
can have for his application in the appstore? Are there any best
practise benchmarks on this from other app marketplaces?


3. Getting a list of Market-downloaded apps

4. Test upgrade between versions

5. simple web search based on location

6. How to search for a location on MapView?

7. ACTION_DATE_CHANGED doesn't work, right?