You can respond to a button click event in two ways.
1. Create an onClick attribute in the layout xml file
2. Create an onClickListener by instantiate a Button object.
Visit my blog : http://www.easyway2in.blogspot.com
Like my Facebook page : https://www.facebook.com/codeglympse
Subscribe My YouTube channel : http://www.youtube.com/ticoontechnologies
آی-ویدئو