I add a VideoView to a LinearLayout and I can't make it to be visible on screen, LinearLayout is in front of it. After that LinearLayout is add to a ViewFlipper Here is my code:
LinearLayout rr = new LinearLayout(this);
rr.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));
myVideoView = new VideoView(this);
myVideoView.setVideoPath(Environment.getExternalStorageDirectory()
+"/download/"+"big_buck_bunny.mp4");
myVideoView.requestFocus();
myVideoView.bringToFront();
rr.addView(myVideoView,new LayoutParams(rr.getWidth(),rr.getHeight()));
vf.addView(rr);
Can anyone help me??? Please...Where is my mistake? I can't see it.