title: Embed HTML into application
body: <p>I have android application that is written "regular" way. layouts, java, APK.</p>
  
  <p>Now, depending on some factors I want data to be presented differently to different users with different preferences, etc. Doing it using XML layouts will be very problematic in couple of reasons:</p>
  
  <ol>
  <li>Upgrade issue - we have bunch of users and they not good at upgrading.</li>
  <li>Hard to maintain and code.</li>
  </ol>
  
  <p>So, I'm toying with idea of "templates" where we can serve templates from server and just use device to generate those.</p>
  
  <ol>
  <li>Web app won't work because our data available offline in case there is no connection.</li>
  <li>There is buttons and stuff that user can press to call regular Activities and do things.</li>
  </ol>
  
  <p>I envision something like:
  HTML 5 template with {tags} that I will populate from data. I will receive tempaltes and data separately from server. I will merge that data and display on UI.</p>
  
  <p>Now my question is how do I:</p>
  
  <ol>
  <li>Display HTML5 inside Activity</li>
  <li>Intercept button push in HTML in my Java code? </li>
  </ol>
  
  <p>Is this bad idea to write something like this?</p>