title: Cordova android emulator - how to use local host?
body: <p>I'm trying to create an application that uses rest api. The backend is on my local machine, so I've got this</p>
  
  <pre><code>127.0.0.1   api.mail.my
  </code></pre>
  
  <p>in <code>/etc/hosts</code></p>
  
  <p>In the application I've got the following:</p>
  
  <pre><code>var messageResource = $resource('http://api.mail.my/messages/:folder/:id');
  </code></pre>
  
  <p>which works ok, when accessing this app via browser.</p>
  
  <p>But how do I make this app to access the resource, when it's being run in an emulator (<code>cordova emulate android</code>)?</p>