Return to Snippet

Revision: 45138
at April 25, 2011 19:50 by hmvrulz


Initial Code
Button button_name =(Button)findViewById(R.id.ButtonId);

        button_name.setOnClickListener(new View.OnClickListener() {
            public void onClick(View arg0) {

            Intent intent_name = new Intent(Activity1.this,Activity2.class);
            startActivity(intent_name);

            }
         });

Initial URL

                                

Initial Description

                                

Initial Title
Button with ClickLister

Initial Tags
button, android

Initial Language
Java