Re: [android-beginners] Java Keyword This and Button Listeners.

2010-07-18 Thread Sam Hobbs
I am new to Java, but since Justin says that the this reference is essentially the same as in C++ and C# I hope my comments are helpful. I think one point that was not made clear is that the operating system (Android, Linux or whatever) is not written in Java but if it was written in Java it w

Re: [android-beginners] Java Keyword This and Button Listeners.

2010-07-12 Thread Justin Anderson
*> I know that the keyword "this" refers to an instance variable or can invoke a constructor* That is not what the keyword "this" references. It references the instance of the class you are currently in... *> but I don't understand how passing "this" as the arg for setOnClickListener () works?Cou

[android-beginners] Java Keyword This and Button Listeners.

2010-07-12 Thread Keith Roberts
Hey all, I know that the keyword "this" refers to an instance variable or can invoke a constructor, but I don't understand how passing "this" as the arg for setOnClickListener () works?Could someone explain? Thanks, keith -- You received this message because you are subscribed to the Google G