title: Creating an android app that simply launches a URL in the browser
body: <p>I happen to have a mobile-friendly web app, but my users desperately want to install it to their app drawer :/ I have some experience with Java, the new Android Studio, and I see some instructions on <a href="https://stackoverflow.com/questions/2201917/how-can-i-open-a-url-in-androids-web-browser-from-my-application">this stackoverflow question</a>, but I'm unsure where this code belongs:</p>
  
  <pre><code>Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
  startActivity(browserIntent);
  </code></pre>
  
  <p>Putting it in the <code>onCreate</code> method of the default action yields errors that suggest that's the wrong place for an intent. Where would be a good place to execute such an intent?</p>