0

In Java, is it possible to block an Android applications screen being mirrored in chromecast or via an MHL connection?

I've tried FLAG_SECURE as mentioned here: https://stackoverflow.com/a/9822607/5983905

however that only blanks the app for Miracast mode. Any help would be much appreciated.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
shochu_king
  • 136
  • 2
  • 10
  • How about trying the solution in [this SO post](https://stackoverflow.com/questions/26620764/android-turn-off-chromecast-screen-mirroring-function)? – MαπμQμαπkγVπ.0 Sep 05 '18 at 09:22
  • Thanks for the reply! Yes I tried that and it works ok in a 1 activity app but when transitioning between activities I get the underlying activity showing, which doesn't look good. – shochu_king Sep 21 '18 at 05:28

0 Answers0