Declare a method to add button in a function and add setonclicklistner method on the button in the onclicklstner method do whatever you want to do with the button
On Mar 15, 5:04 pm, DanH <danhi...@ieee.org> wrote: > PS: You can probably skip chapters 13 and 15. > > On Mar 15, 4:53 am, "Ponraj \"Android Developer\""<sanraj...@gmail.com> wrote: > > Hi All. > > I am creating buttons dynamically. I am not able to access those buttons > > outside the methods. > > I am not familiar with java programming. I am new to android. Give solution > > for my problem. > > Should I declare the Buttons globally????If yes means, How should I????? > > help me out.... > > -- > > with thanks and regards, > > P.Ponraj -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en