Android Code Snippet Youtube intent force orientation lanscape

Hi all, this is way to force the orientation of an intent youtube ( landscape )

B4X:
    Private i As Intent
    i.Initialize(i.ACTION_VIEW, "https://www.youtube.com/watch?v=XXXXXX" )
    i.putExtra("force_fullscreen",True)
    i.SetComponent("com.google.android.youtube/.UrlActivity")
    StartActivity(i)

By
Marco
 

victormedranop

Well-Known Member
Licensed User
Longtime User
Hi, what library do i need to work with INTENT
try your code but got error
Object Expected on
B4X:
 Private i As Intent
 

MarcoRome

Expert
Licensed User
Longtime User
No library.
When reporting Error , wrong or another things is necessary that we send more details possible, code that you use, etc.
In another way ISNT possible
 
Top