title: mirroring app chromecast
body: <p>I'm developping an android App and now I would like to add a screen mirroring button which display the same screen on a tv equipped with a chromecast.</p>
  
  <p>I found a way : <a href="https://developers.google.com/cast/docs/remote" rel="nofollow noreferrer">chromecast remote</a>
  but there given <a href="https://github.com/googlecast/CastRemoteDisplay-android" rel="nofollow noreferrer">sample</a> is in beta, crashing when I click on the button and the development seems to be hard time-consuming (because I don't need to create new view with 'presentation' if I just want to mirror).</p>
  
  <p>A second way should be to launch the google home mirroring service, that just work really well. But I don't find a way to call it from my app..</p>
  
  <p>In short, I have no more clue, if someone have any idea that would be nice.</p>
  
  <p>Thanks for your answer !</p>