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

public class SimpleVideo extends Activity {
        private VideoView myVideo;
        private MediaController mc;
        public void onCreate(Bundle icicle) {
                Button bPlayVideo=(Button)findViewById(;
                bPlayVideo.setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
              ;      }
                        mc=new MediaController(this);


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)  | 

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


Other Threads

1. wrapper around SharedPreferences.

(for various reasons), I need to encapsulate SharedPreferences into a
non-android specific class.

In order to use SharedPreferences, I need an android specific

Is there any way without a view or context already to get the current
Activity, or Context or something I could use to get a context
(without having one first) ?


2. First boot

Why does the first boot after flashing take so long to boot up?
I read about dexopt that it does preverification and optimization of
dex files. But does this happen only on the first boot or on
consecutive boots as well?

3. got a black screen after no operation on app for a while

4. Advice on Icons

5. Issue with using fill_parent on Donut

6. Writing raw data on a partition.

7. is it ok to use key store for release as the key store for debugging android application?