title: How to run HTTP server on android?
body: <p>I have an Android <code>Activity</code> with <code>WebView</code> in it.<br>
  I have all my HTML, CSS and JavaScript files in <code>assets</code> folder.</p>
  
  <p>I can run the <code>index.html</code> from <code>assets</code> in my <code>WebView</code> but it doesn't work correctly.<br>
  What I need is a VERY simple HTTP server running in that directory.</p>
  
  <p>How can I do that?</p>
  
  <p>Basically as simple as this:</p>
  
  <blockquote>
    <p>SimpleHTTPServer running on a mac.  </p>
  </blockquote>
  
  <pre><code>$ cd /home/somedir
  $ python -m SimpleHTTPServer
  </code></pre>
  
  <p>If it can't be assets directory, I can use any directory as long as I can set it.</p>
  
  <p>any ideas?</p>
  
  <p>thank you!</p>
  
  <p>=================================  </p>
  
  <blockquote>
    <p>EDIT  </p>
  </blockquote>
  
  <p>what I mean by "it doesn't work correctly" is that the <code>index.html</code> and other assets files make AJAX calls and to view the HTML correctly with the calls, there needs to be a local HTTP server running on that directory.</p>