Android Tv: get list of channels

前端 未结 2 1976
遇见更好的自我
遇见更好的自我 2021-01-05 04:12

I\'ve installed the androidtv-sample-inputs so I can fake some Tv inputs and have some channels and I wanted to get information about that channels, however, when I query to

相关标签:
2条回答
  • 2021-01-05 04:33

    What kind of permission are you using ?

    If your application isn't signatureOrSystem, you can only access your own channels and programs from queries to the TV provider. All the queries you're doing are filtered on your package name.

    I guess that the information you can retrieve from a channel are restricted to what is accessible from TvInputInfo.

    0 讨论(0)
  • 2021-01-05 04:43

    Additionally to "com.android.providers.tv.xxx" EPG permissions needed in the manifest file, you must sign your .apk ! Otherwise you will see all the TvInput available on your device but none of the channels composing these tvInput (and this, without any error returned ;-)). Android Studio provides this features ('BUILD' menu entry then 'Generate Signed APK') see How to sign an android apk file

    0 讨论(0)
提交回复
热议问题