Have you done anything like:
Button nameofYourButton =
(Button)findViewById(R.id.name_of_your_xml);
      nameofYourButton .setOnClickListener(mAddListener);
And then define the onClickListener?


On Sep 28, 2:13 pm, aditi badwe <[email protected]> wrote:
> hi if i am building the basic application for android in main .java
> file in src folder then i have given a button in xml file...after
> clicking on the button how could i go to next screen i.e screen 2??

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

Reply via email to