The plan is to have a twitch session (or 2) viewable in a chrome tab on the phone.
After the user selects which twitch feed they’d like to monitor, a chrome tab is opened with the corresponding twitch url.
The chrometab I’ve designed which wraps android’s customIntents is included and abstract, meaning you would create a class and extend the chrometab, with a twitchchrometab for example. The general support for customtabs is below, with the animations and toolbar colors included in my chrometab.
the button that creates the chrometab will have an onclicklistener like:
where your twitchchrometab will pass in the playerId most likely.
Code:
gameTitleText.setOnClickListener(new View.OnClickListener() {
[MENTION=295804]Override[/MENTION]
public void onClick(View v) {
new CbsChromeTab(getActivity(), game.getId(), date).openUrl();
}
});