Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to lunch program guide directly from my app? And also how can I tune a specific channel from my app? #39

Open
aisbd opened this issue Apr 5, 2019 · 5 comments

Comments

@aisbd
Copy link

aisbd commented Apr 5, 2019

I've seen that tif have app linking to my app thats nice and users can come to my app. But the issue I'm having is once they on my app how can I send them to tif back to the program guide from my app? And How can I tune a specific channel programmatically from my app?

@Fleker
Copy link
Contributor

Fleker commented Apr 5, 2019

You need to get the internal channel id by querying the channels database. Then you can construct a URI and pass that to an intent.

Uri liveChannelsUri = TvContract.buildChannelUri(yourChannelId);
getActivity().startActivity(new Intent(Intent.ACTION_VIEW, liveChannelsUri));

@aisbd
Copy link
Author

aisbd commented Apr 5, 2019

Thank you @Fleker . Could you please also help how can I run the program guide directly from my app?

@Fleker
Copy link
Contributor

Fleker commented Apr 5, 2019

You can use the TvContract classes and run database calls to get the programs you inserted into your database for UI, but you can't get entire program guide (from other apps).

@aisbd
Copy link
Author

aisbd commented Apr 6, 2019

I see. But isn't there any way that I can add a program guide button on my app and once a user click on it just open the tif program guide activity. thats it. its like reverse app linking.

I just want to send a user here(picture below) from my app.
Screenshot 2019-04-06 at 8 13 36 AM

@Fleker
Copy link
Contributor

Fleker commented Apr 8, 2019

Not that I know of

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants