amzn / ftv-livetv-sample-tv-app

Apache License 2.0
24 stars 22 forks source link

Adding additional documentation for INITIALIZE_PROGRAMS usage #8

Closed gopalrh closed 3 years ago

gopalrh commented 3 years ago

Description of changes:

Code changes have already been implemented:

This CR adds additional comments to describe usage of INITIALIZE_PROGRAMS

Testing: Verified in the logs that INITIALIZE_PRORGAMS gets sent when sample app is installed

adb logcat TvInputChangeReceiver:D TvContractUtils:D InitializationReceiver:D TIFUtils:D *:S

09-22 10:12:17.066 12499 12499 I TvInputChangeReceiver: Received TvInput change event: com.amazon.tv.action.TV_INPUT_ADDED, for input: com.example.android.sampletvinput/.rich.RichTvInputService
09-22 10:12:17.078 12499 12499 I TIFUtils: Sending initialization intent for com.example.android.sampletvinput
09-22 10:12:18.134 12768 12768 D InitializationReceiver: Received intent with action android.media.tv.action.INITIALIZE_PROGRAMS
09-22 10:12:18.589 12768 12797 D TvContractUtils: Adding channel -941324943 at content://android.media.tv/channel/32
...
...

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.