Saturday, September 3, 2011

[android-developers] Help needed on BUtton CLick

Hi Guys,

i'm very new to android developing , i have a small concern which may
be really silly.

I have a image gallery been created with few images ... I want to
access the Image gallery when a particular button is been clicked ..

So i have placed the button and i have written the code as follows,

public class Button extends Activity {
Private Button button;
@Override
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.main);

button = (Button)this.findViewById(R.id.Button01);
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {

}});
}}


How do i call the ImageGallery class after the Button is clicked.

Looking forward for reply ..

Regards,
Sam

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment