title: Android Alert with "Don't show again" checkbox in Webview
body: <p>I have a Web-view In that on click with the help JavaScript interface it will open My android activity's from web-view Here its working fine...</p>
  
  <p>So Here When User Click on any button Which is JS-Interface.. I have added a Alert</p>
  
  <p>So when Ever User click on it... It will show a Dialog...</p>
  
  <p>Now I followed <a href="https://pankajchunchun.wordpress.com/2012/02/16/use-alertdialog-with-checkbox-to-handle-dont-show-again/" rel="nofollow noreferrer">this</a> to add a Option like Don't ask again.... Check box</p>
  
  <p>Here I have given Shared prefs and Check box... But its not working... </p>
  
  <p>and One more thing that check box is viable in web-view... it should show only on alert.. But its showing all time...</p>
  
  <p>Can any one suggest me .. How to Show Alert with Check box.. dont ask again in android Webview... and remember the check box...</p>
  
  <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{Mypackage/myactivity}: android.view.InflateException: Binary XML file line #18: Error inflating class checkbox
  </code></pre>
  
  <p><strong>Update</strong> </p>
  
  <p>Here is <a href="https://stackoverflow.com/q/42663484/5010291">my code</a> for that I have added the <a href="https://pankajchunchun.wordpress.com/2012/02/16/use-alertdialog-with-checkbox-to-handle-dont-show-again/" rel="nofollow noreferrer">example code</a>... at alert...</p>
  
  <p>Actually I need a Check Box without XML for Checkbox...(Due to XML for Check box my Main Web-view is Getting some errors)
  Is it possible.. If so Let me Know...</p>