[android-developers] Re: How to declare Button as global object????
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 globallyIf 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
[android-developers] Re: How to declare Button as global object????
That's not very nice. If he is new to Java programming, the language specification is NOT the place to start. Why? The language spec is how I learned Java. On Mar 15, 4:08 pm, Indicator Veritatis mej1...@yahoo.com wrote: That's not very nice. If he is new to Java programming, the language specification is NOT the place to start. He should start with the Sun (now Oracle) Tutorials, or a good primer on the topic, NOT with the language specification. I usually recommend both: 1)http://download.oracle.com/javase/tutorial/java/index.html and 2)http://www.mindview.net/Books/TIJ/ In fact, if the reader is going to go the free route, it is particularly important to use both. This is because the book, excellent though it is, does not cover important, nifty new features such as 1) the new concurrency classes and 2) Collections using Generics. For that, you need the tutorials. But the tutorials are not as complete. So use both. Or go out and by Head First Java, which is pretty up to date, and has the advantage of using pedagogical techniques based on the latest research in cognitive science. Whichever route he takes, the OP will need to learn a fair amount of Java to make sense of Android. I usually recommend knowing it at least at the level of the first four trails under Trails Covering the Basics and also 'Deployment'. Even the Swing Trail would be helpful, since it is not THAT dissimilar to Android's way of doing UI, but the two are different enough that I consider it optional. On Mar 15, 4:59 am, DanH danhi...@ieee.org wrote: I am not familiar with java programming. http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html Enjoy! 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 globallyIf 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
[android-developers] Re: How to declare Button as global object????
I am not familiar with java programming. http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html Enjoy! 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 globallyIf 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
[android-developers] Re: How to declare Button as global object????
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 globallyIf 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
[android-developers] Re: How to declare Button as global object????
That's not very nice. If he is new to Java programming, the language specification is NOT the place to start. He should start with the Sun (now Oracle) Tutorials, or a good primer on the topic, NOT with the language specification. I usually recommend both: 1) http://download.oracle.com/javase/tutorial/java/index.html and 2) http://www.mindview.net/Books/TIJ/ In fact, if the reader is going to go the free route, it is particularly important to use both. This is because the book, excellent though it is, does not cover important, nifty new features such as 1) the new concurrency classes and 2) Collections using Generics. For that, you need the tutorials. But the tutorials are not as complete. So use both. Or go out and by Head First Java, which is pretty up to date, and has the advantage of using pedagogical techniques based on the latest research in cognitive science. Whichever route he takes, the OP will need to learn a fair amount of Java to make sense of Android. I usually recommend knowing it at least at the level of the first four trails under Trails Covering the Basics and also 'Deployment'. Even the Swing Trail would be helpful, since it is not THAT dissimilar to Android's way of doing UI, but the two are different enough that I consider it optional. On Mar 15, 4:59 am, DanH danhi...@ieee.org wrote: I am not familiar with java programming. http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html Enjoy! 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 globallyIf 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