case/switch statement
<p>i need some help with switch/case statement syntax
im trying to use onClick to have different buttons do different things
i have the first one working
it just uses an intent to start a new activity.
for the next button, i want it to open a specific url
looks like this so far</p>

<pre><code>public void onClick(View v) { 
   switch (v.getId()) { 
   case R.id.about_button: 
   Intent i = new Intent(this, About.class); 
   startActivity(i); 
   case R.id.engadget_button: 
   Intent a = new Intent(this, )
</code></pre>

<p>how do i get the engadget_button to open engadget.com?</p>

<p>Is it just something like this:</p>

<pre><code>case R.id.engadget_button:
String url ="http://www.engadget.com/";
Intent a = new Intent(Intent.ACTION_VIEW);
a.setData(Uri.parse(url));
startActivity(a);
break;
</code></pre>

<p>??</p>
