' 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)