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:

 http://developer.android.com/guide/appendix/media-formats.html 

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




Other Threads

1. Unable to check correct row when using CheckedTextView

Hello,
I have a custom multi-select listview with two lines per row and a
checkbox in the first line. When I click on the checkbox, the checbox
does not get checked. But the list items get checked/ unchecked. I
want to check the checkbox corresponding to the row I clicked. If I
use findViewById() in onListItemClick(), it does not find the correct
checkbox. I click on a click and some other row gets checked. How can
I get to check the correct row. Below is my main.xml and
onListItemClick() code:

Main.xml
--------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:orientation="vertical"
     android:paddingTop="5dip"
     android:paddingBottom="5dip"
     android:paddingLeft="5dip"
     >
     <CheckedTextView
         android:id="@+id/title"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:textAppearance="?android:attr/textAppearanceLarge"
         android:checkMark="?android:attr/listChoiceIndicatorMultiple"
         />
     <TextView
         android:id="@+id/desc"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:layout_below="@+id/title"
         android:textAppearance="?android:attr/textAppearanceSmall"
         />
</LinearLayout>

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
protected void onListItemClick(ListView l, View v, int position, long
id) {
        super.onListItemClick(l, v, position, id);
        CheckedTextView cbox = (CheckedTextView)v.findViewById(R.id.title);
        if(cbox.isChecked())
                cbox.setChecked(false);
        else
                cbox.setChecked(true);

        v.refreshDrawableState();
}

--~--~---------~--~----~------------~-------~--~----~

2. Share component as APK file

I am working on couple android applications which share a common
component. The component has Activities, Service and own
AndroidManifest.xml. After research, it seems there is no concept of
run time share library among applications in Android. So I am looking
for a way to linked the share component with other applications at
compile time.

Applications which will use the component can come from external,
therefore I will only provided the compiled file. I would like to
build the component into own apk or jar file, can external application
include my jar/apk file into their package and be able to start my
activity? Please share your experience and advice.

Thanks,
Kevin

--~--~---------~--~----~------------~-------~--~----~

3. Unable to start service Intent error in Client-Server project

4. How get horizontal and vertical events in android

5. Can we call R.java acreoss the packages?

6. Native Library Porting in Android[Windows]

7. Paid App Question