tags:

views:

17

answers:

1

hi..

Can you give an example, how to display video from the url?

thanks

A: 

The easier way:

public class A extends Activity{
    public void onCreate(Bundle b){
        super.onCreate(b);
        VideoView videoView = new VideoView(this);
        setContentView(videoView);

        videoView.setVideoPath("http://example.com/video.mp4");
        videoView.setMediaController(new MediaController(this));
        videoView.requestFocus();
        videoView.start();
    }
}
Cristian
thanks cristian . i try your code ..
Vootsugu