title: Android Hybrid Application and Remote Server Communication
body: <p>I am learning to develop Hybrid Application for Android platform (which will be extended to other mobile platforms later). I have read a number of articles and have got a start but have not come across something which explains this.</p>
  
  <p>I want to store the UI (HTML/JavaScript/CSS) files on the mobile device and display it via the WebView. This will communicate with a remote server to fetch data via a WebService.
  What I have not understood specifically is:</p>
  
  <ol>
  <li>Will the UI files (HTML/JavaScript/CSS) be installed on the file
  system of android device or will there be a local embedded WebServer
  on the android device.</li>
  <li>If the HTML/JavaScript/CSS files are on the file system how do they
  communicate with the remote WebService.  Let’s say I want to make an
  AJAX call to the remote server…  will it be handled by UI
  (HTML/JavaScript) files displayed via WebView or by the JAVA
  Container in which the WebView is sitting in? What I did not
  understand is how can an HTML/JavaScript sitting on the file system
  make AJAX calls.</li>
  <li>If a local embedded WebServer is required on mobile device can you
  suggest me some? And if this is true will the same architecture work
  on others platforms as well like iOS, Symbian, BlackBerry etc.</li>
  </ol>
  
  <p>If anyone feels this is not the right way to go please let me know your thoughts on the architecture.</p>
  
  <p>Kindly point me to the right articles or explain your thought on this particular scenario.</p>