play video

by Nithin » Sat, 04 Apr 2009 13:16:01 GMT


Sponsored Links
 Hi.. to all

               Can anyone tell me that how to run video file in
android emulator. I am using windows flat form. It is possible to run
video file in android emulator using  windows flat form... If possible
please tell me how to run...


Thank You
Nithin N V


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



play video

by Nithin » Sat, 11 Apr 2009 11:56:41 GMT


 Hi to all

           I tried to play the video through sdcard image... But i got
a error like
"Cannot play the video".. Can anyone tell me what is the error in my
code...


public class SimpleVideo extends Activity {
        private VideoView myVideo;
        private MediaController mc;
        @Override
        public void onCreate(Bundle icicle) {
                super.onCreate(icicle);
                getWindow().setFormat(PixelFormat.TRANSLUCENT);
                setContentView(R.layout.main);
                Button bPlayVideo=(Button)findViewById(R.id.playvideo);
                bPlayVideo.setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                        mc.show();      }
                                });
                        myVideo=(VideoView)findViewById(R.id.video);
                        myVideo.setVideoPath("/sdcard/test.mp4");
                        mc=new MediaController(this);
                        mc.setMediaPlayer(myVideo);
                        myVideo.setMediaController(mc);
                        myVideo.requestFocus();
                }
}



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


Sponsored Links


play video

by Mark Murphy » Sat, 11 Apr 2009 21:09:45 GMT


 


It may be the video file you have is not compatible with Android.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Warescription: Three Android Books, Plus Updates, $35/Year

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



Other Threads

1. Strange issue with webkit

Hi,

I have a strange issue with Android 2.0.1. The french site http://wap.ratp.fr
just fail to render correctly. It works great with Android 1.6 and
earlier version.

I fill an issue here http://code.google.com/p/android/issues/detail?id=5768
adding some HTTP streams dump to prove it's not wap.ratp.fr which is
faulty. At least I think so.

This bug is very annoying for people in France leaving in Paris who
want to use this site : it's very useful when you use transports here.
I don't know what I can do to help fixing this bug, if anyone can take
a quick look and tell me if more informations are needed I'll be happy
to give some.

Cheers,

-shino-

2. Public calendar API for android

Hi.  Is someone from Google able to advise when the android SDK is
likely to include a public API for reading/writing event data to the
user's calendar?

Searching the forums I see that this is a much desired feature by many
developers but I haven't seen any indication as to when (or even if)
this need will be addressed.

Thanks in advance ...

3. Reminder IRC office hours today 5:00- 6:00 PST

4. Difference between ImageView.setImageBitmap() and RemoteView.setImageViewBitmap() ????

5. Save a highscore-list to the internal memory or the sd-card?

6. HTC Hero di flickr

7. rada oot: total cost of ownership :)