nOW IT IS WORKIN Working
<p>I have create a method for playing a video in a video player and called that method on a button click, but whenever I was click on the button then the activity page blink for a half second but the player wasn't appear on the screen. Plz help me Is there neccessary to create view or a layout for a video player for playing a video in xml file. I havn't create this.</p>

<pre><code>import android.app.Activity;

import android.content.Intent;
import android.graphics.PixelFormat;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.MediaController; 
import android.widget.VideoView;
public class OptionsmenuAct extends Activity  {


@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

final Button play =(Button)findViewById(R.id.video);
Equity.setOnClickListener(new OnClickListener(){
    public void onClick(View V){
        videoPlayer("/Optionsmenu/assets/lic.3gp","lic",true);

    }
});}





public void videoPlayer(String path, String fileName,boolean autoplay){

    getWindow().setFormat(PixelFormat.TRANSLUCENT);

    VideoView videoHolder = new VideoView(this);

    videoHolder.setMediaController(new MediaController(this));

    videoHolder.setVideoURI(Uri.parse(path+"/"+fileName));

    videoHolder.requestFocus();
    videoHolder.start();
    if(autoplay){
       videoHolder.start();
    }

 }
}
</code></pre>

<p>Plz tell me how's it will worked.
I have store my video file into assets folder.</p>
