* This sample demonstrates the use of the MediaRouter API to show content on a * secondary display using a {@link android.app.Presentation}. *
* The activity uses the {@link android.media.MediaRouter} API to automatically detect when a * presentation display is available and to allow the user to control the media * routes using a menu item provided by the {@link android.app.MediaRouteActionProvider}. * When a presentation display is available a {@link android.app.Presentation} (implemented * as a {@link SamplePresentation}) is shown on the preferred display. A button * toggles the background color of the secondary screen to show the interaction * between the primary and secondary screens. *
* This sample requires an HDMI or Wifi display. Alternatively, the * "Simulate secondary displays" feature in Development Settings can be enabled * to simulate secondary displays. *