I am having an Activity in which there is
VideoView -- Streams a video from a webserver.
Button -- Takes the user to the next activit
public class Video_play extends Activity {
VideoView vv;
String URL;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.play_video);
URL= getIntent().getStringExtra("URL");
vv=(VideoView)findViewById(R.id.videoView1);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(vv);
Log.v("URL",URL);
// Uri uri = Uri.parse(URL);
// vv.setVideoURI(uri);
vv.setMediaController(new MediaController(this));
vv.setVideoPath(URL);
// vv.requestFocus();
//
// vv.start();
// Uri uri=Uri.parse(URL);
//
//
// vv.setVideoURI(uri);
vv.start();
}