you must set parameters for playing video see api demos - >examples media -> video demo player
On Thu, Mar 5, 2009 at 1:15 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 > > > -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---