Heres the code
package com.example.ExtraFeaturesPage; import android.app.Activity; import android.os.Bundle; import android.text.TextWatcher; import android.view.View; import android.widget.AdapterView; import android.widget.ImageButton; import android.content.Intent; import android.net.Uri; import android.widget.ImageView; public class MyActivity extends Activity { /** * Called when the activity is first created. */ ImageButton androidButton; ImageView androidImage; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); androidButton = (ImageButton)findViewById(R.id.calenderbutton); androidButton.setOnClickListener(myhandler1); androidImage = (ImageView)findViewById(R.id.dropboxbutton); androidImage.setOnClickListener(myhandler2); androidImage = (ImageView)findViewById(R.id.twitterbutton); androidImage.setOnClickListener(myhandler3); androidImage = (ImageView)findViewById(R.id.facebookbutton); androidImage.setOnClickListener(myhandler4); } View.OnClickListener myhandler1 = new View.OnClickListener() { public void onClick(View view) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.mkyong.com")); startActivity(browserIntent); } }; View.OnClickListener myhandler2 = new View.OnClickListener() { public void onClick(View view) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.dropbox.com")); startActivity(browserIntent); } }; View.OnClickListener myhandler3 = new View.OnClickListener() { public void onClick(View view) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.twitter.com")); startActivity(browserIntent); } }; View.OnClickListener myhandler4 = new View.OnClickListener() { public void onClick(View view) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.facebook.com.com")); startActivity(browserIntent); } }; }