androidtv-sample-inputs icon indicating copy to clipboard operation
androidtv-sample-inputs copied to clipboard

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

Open aisbd opened this issue 6 years ago • 5 comments

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?

aisbd avatar Apr 05 '19 03:04 aisbd

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

Fleker avatar Apr 05 '19 14:04 Fleker

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

aisbd avatar Apr 05 '19 14:04 aisbd

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

Fleker avatar Apr 05 '19 19:04 Fleker

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

aisbd avatar Apr 06 '19 02:04 aisbd

Not that I know of

Fleker avatar Apr 08 '19 15:04 Fleker