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. 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
"Context".

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

tia.
--~--~---------~--~----~------------~-------~--~----~

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?
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

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?