' Chiama un video di Youtube
Dim objIntent As Intent
objIntent.Initialize(objIntent.ACTION_VIEW, "http://www.youtube.com/watch?v=KwHYh4S1OiY")
objIntent.SetComponent("com.google.android.youtube/")
StartActivity(objIntent)
La cosa fastidiosa è che (diversamente da quanto credevo dichiarando esplicitamente youtube in .SetComponent) mi compare la schermata di selezione delle apps fra le quali scegliere (il browser internet o youtube). C'è un modo per forzare la scelta (forse con .SetType)?http://www.b4x.com/forum/images/smilies/mad.gif
' Chiama un video di Youtube
Dim objIntent As Intent
Dim VideoId As String
VideoId = "KwHYh4S1OiY"
objIntent.Initialize(objIntent.ACTION_VIEW, "vnd.youtube:" & VideoId)
objIntent.PutExtra("VIDEO_ID", VideoId)
StartActivity(objIntent)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.