package com.dome.pokiiez;



import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.app.Activity;
import android.view.Menu;
import android.widget.MediaController;
import android.widget.VideoView;

public class Layvi extends Activity {


	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		//setContentView(R.layout.layv);


		startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.youtube.com/watch?v=D__IiW7Gjds&feature=youtu.be")));
		//ยูทูปเต็มจอ
		//Intent intent = (new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.youtube.com/watch?v=D__IiW7Gjds&feature=youtu.be")));
		//intent.putExtra("force_fullscreen",true);
		//startActivity(intent);


		//VideoView video = (VideoView) findViewById(R.id.video_view);

		//MediaController mc = new MediaController(this);
		//video.setMediaController(mc);


		//set path
		//video.setVideoPath("android.resource://com.dome.pokiiez/raw/layup");
		//video.setVideoPath(Environment.getExternalStorageDirectory() + "/Lay.mp4");

		//video.setVideoPath(Environment.getExternalStorageDirectory() + "/databas/newBasketball/Lay.mp4");

		//video.start();
	}
}
