Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

open youtube in landscape mode on button click in android progmatically

Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
browserIntent.putExtra("force_fullscreen",true);// main logic is in this line 
startActivity(browserIntent);
 
PREVIOUS NEXT
Tagged: #open #youtube #landscape #mode #button #click #android #progmatically
ADD COMMENT
Topic
Name
8+3 =