title: How to get actual mobile device screen size in web applications, javascript?
body: <p>I write mobile application based on Cordova and I have problem with screen sizes.</p>
  
  <p>When I fetch screen sizes (for Nexus 4):</p>
  
  <pre><code>var sw = screen.width;
  var  sh =  screen.height;
  </code></pre>
  
  <p>it gives me:</p>
  
  <pre><code>width: 768; height: 1184 
  </code></pre>
  
  <p>However actual sizes (when I try to debug)</p>
  
  <pre><code>384 x 567
  </code></pre>
  
  <p>How to get actual screen size?</p>
  
  <p>Thanks,</p>