1 page.title=MediaRouter Sample 2 @jd:body 3 <p> 4 This sample demonstrates the use of the MediaRouter API to show content on a 5 secondary display using a {@link Presentation}. 6 </p> 7 <p> 8 The activity uses the 9 <a href="http://developer.android.com/reference/android/media/MediaRouter.html">MediaRouter</a> API 10 to automatically detect when a 11 presentation display is available and to allow the user to control the media routes using a menu 12 item provided by the 13 <a href="http://developer.android.com/reference/android/app/MediaRouteActionProvider.html"> 14 MediaRouteActionProvider</a>. 15 When a presentation display is available a 16 <a href="http://developer.android.com/reference/android/app/Presentation.html">Presentation</a> 17 is shown on the preferred display. A button toggles the background color of the secondary screen 18 to show the interaction between the primary and secondary screens. 19 </p> 20 <p> 21 This sample requires an HDMI or Wifi display. Alternatively, the 22 "Simulate secondary displays" feature in Development Settings can be enabled 23 to simulate secondary displays. 24 </p> 25 26 27