title: How to prevent a user from taking a screenshot in Android Crosswalk WebView?
body: <p>I'm trying to prevent from taking a screenshot in Crosswalk WebView. I have tried <a href="https://github.com/Telerik-Verified-Plugins/PrivacyScreen" rel="nofollow noreferrer">PrivacyScreenPlugin</a>. This plugin works very good when I wasn't using Crosswalk plugin. However, if I added Crosswalk plugin, it only works at the app launch time.<br>
  For example, when I launch my app, I can not take a screenshot. However, if I show any other UI component (such as volume control, etc..), my app start allowing to take a screenshot.</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/34040235/how-to-prevent-a-user-from-taking-a-screenshot-in-ionic-cordova">this</a> related question and one person mentioned that if I use Crosswalk, I need to modify PrivacyScreenPlugin/Crosswalk.</p>
  
  <p>Here is what I tried:<br>
  In Crosswalk WebView plugin, XwalkWebViewEngine#init method.</p>
  
  <pre><code>cordova.getActivity().getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
  </code></pre>
  
  <p>However, above code wasn't fix my issue.<br>
  And, I couldn't find a place to modify in PrivacyScreenPlugin.</p>
  
  <p>I'm using following Android versions and plugins:  </p>
  
  <ul>
  <li>Android 5.0.2</li>
  <li>Crosswalk plugin 1.6.1</li>
  <li>PrivacyScreenPlugin 0.2.0</li>
  </ul>
  
  <p>Any comment would be appreciated.</p>