Skip to content

Instantly share code, notes, and snippets.

View kotlintpoint's full-sized avatar

Kotlintpoint kotlintpoint

View GitHub Profile
public class MainActivity extends AppCompatActivity {
private WebView webView;
String frameVideo = "<html><body>Youtube video .. <br> <iframe width=\"320\" height=\"315\" src=\"https://www.youtube.com/embed/rcSrzSXZ2Kw\" frameborder=\"0\" allowfullscreen></iframe></body></html>";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_you_tube);
webView=findViewById(R.id.web_view);
<uses-permission android:name="android.permission.INTERNET"/>