跳转Twitch App
When I use an Android device, how do I jump to the Twitch app by the package name and Activity class name
1
vote
Anonymous
shared this idea
-
You do not need to know the activity names explicitly. Use the deep link formats to open the Twitch app directly to the desired destination. For Android, your code may look something like this to go to a channel:
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse("twitch://stream/<channel name>"));
startActivity(i);The deep link formats to use for the URI can be found here: https://dev.twitch.tv/docs/mobile-deeplinks#deep-link-formats