Recommendation card
– Android TV app Tutorial hands on 11

recommendation

Recommendation Android TV’s home, LeanbackLauncher has a recommendation row at first row. Any application can suggest recommended contents for users. In this chapter, I will explain how to show recommendation card to LeanbackLauncher from your application. Recommending TV Content – Android developers Android TV Recommendations: What’s in it for my app or game? This recommendation […]

Continue reading →

GuidedStepFragment
– Android TV app hands on tutorial 10

GuidedStepFragment to show Settings display Leanback support library offers a Fragment. Especially, it is useful to use in settings display. Official doc says, A GuidedStepFragment is used to guide the user through a decision or series of decisions.  I also recommend you to read these references for this topic. GuidedStepFragment – official Android developwers site […]

Continue reading →

Can we control background video playback on Leanback Launcher by remote controller?

I’m testing Google’s sample app https://github.com/googlesamples/androidtv-Leanback. After start playing video and go back to Leanback Launcher home display, it keeps playing in background with now playing card. I found pause key stops background video and changes back to normal background, and only after that MediaSession callback is working.After background changes to normal Leanback Launcher background paper, play/pause […]

Continue reading →

MediaSession & MediaController
– Android TV app hands on Tutorial 9

Video Controls implementation with MediaSession The sample implementation is done in Google’s latest sample Android TV application. AOSP sample application implementation does not have MediaSession implementation yet (in API 21, 22). In previous chapter, I explained that following Video controls are needed to be impmented. Action’s UI update part (done in previous chapter) Video control part (done […]

Continue reading →

Video Controls minimum implementation
– Android TV app hands on Tutorial 8

Video Controls minimum implementation Video is streamed in VideoView. * I referred Google’s latest sample Android TV application. AOSP sample application implementation is defferent. For Video controls, we have several stuff to explain. Action’s UI update part (this chapter) Video control part (this chapter) MediaSession implementation, Video control via MediaController’s TransportControls (next chapter)– MediaSession can handle the action […]

Continue reading →

PlaybackOverlayActivity & PlaybackOverlayFragment
– Android TV application hands on tutorial 7

PlaybackOverlayActivity & PlaybackOverlayFragment – Theory I will explain about only UI part in this chapter, video control is explained in next chapter. We will implement UI for handling video contents.   PlaybackOverlayActivity & PlaybackOverlayFragment – Implementation Creating PlaybackOverlayActivity & PlaybackOverlayFragment is the same way as in introduced previously. PlaybackOverlayActivity New → Activity → BlankActivity Activity Name: PlaybackOverlayActivity […]

Continue reading →