You need to tell the mediaplayer where to display the video with
setDisplaySurface(). Check out the media demo apps on
developer.android.com.

On Mar 4, 11:45 pm, Nithin <nithin.war...@gmail.com> wrote:
> hi,
>
> I tried a simple mediaplayer application, just to run a .3gp file.
> First, i put the .3gp file in "Raw" folder and tried to run, but
> nothing is displaying, just blank screen only.... please guide me,
> where i am going wrong. I dont have any xml file, is it needed ??
>
> heres the code, which i am trying
>
> import android.app.Activity;
> import android.media.MediaPlayer;
> import android.os.Bundle;
>
> public class MonsterEntry extends Activity {
>
>         public void onCreate(Bundle savedInstanceState) {
>                 super.onCreate(savedInstanceState);
>                 MediaPlayer mediaplayer = MediaPlayer.create(this, 
> R.raw.monster);
>                 mediaplayer.start();
>         }
>
> }
>
> Thanks
> Nithin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to