Hey Guys!
I am making an app, which starts the phones Youtube app out of a webviewer. To do this i followed PAEs example in this post:
https://groups.google.com/forum/#!searchin/mitappinventortest/html$20call/mitappinventortest/Ez5RVlP8LVw/jn2a2oY87isJBut i think the following will also apply to the use of the activity starter at all and not only from the webviewer.
In the documentation and in tutorials the given structure for opening the Youtube app with the activity starter is like that:
Action: android.intent.action.VIEW
ActivityPackage: com.google.android.youtube
ActivityClass: com.google.android.youtube.PlayerActivity
DataUri: http://www.youtube.com/watch?v=8ADwPLSFeY8
But this example allways leads to a 601: No corresponding activity Error.
Leaving Package and Class in the activity starter empty did half the trick: Now there is a pop-up which let you choose the App you want to start. In this case it asked if you want to use the Chrome Browser, the native android browser or the Youtube app. But i wanted to start the Youtube app instantly, without the question dialog.
What i did was:
Action: android.intent.action.VIEW
ActivityPackage:
ActivityClass:
DataUri: vnd.youtube:5Yn6fR7CAD0
So setting the Action and the DataUri with vnd. rather than http:// did the trick for me.
As i have only one device to test this behaviour (Galaxy S4, Android 4.4.2) and very little coding and AI2 experience i would like to ask you to comment on what i did and maybe even confirm that this is working on other devices/android versions.
Thx & have a nice day! :-)