I’m in the process of integrating Serenity for Android with the new Android TV platform. One of the items is to add Recommendations for Movies and TV Shows to watch. These will appear along side other apps recommendations. Android TV makes use of the Notification API to build and display the recommendations, and it is fairly straight forward to implement.
The main items that you need do are as follows:
- Create an IntentService that can fetch and contribute the recommendations.
- Schedule the IntentService to run periodically after the device has booted to update its recommendations.
- Handle refreshing the recommendations after your video has completed if necessary.
To help others, I have created a Gist that shows what was necessary to implement this for Serenity. The overall implementation took maybe a half a day, and lot of that was making sure that Android Universal Image Loader wasn’t running on the main thread.