Possible Duplicate:
Java this.method() vs method()
I've been reading some things and doing some tutorials about android java but I still dont understand what "this" means, like in the following code.
View continueButton = this.findViewById(R.id.continue_button);
continueButton.setOnClickListener(this);
View newButton = this.findViewById(R.id.new_button);
newButton.setOnClickListener(this);
Also why is it in this example that a button is not defined with Button but with View, what is the difference?
ps. Great site!! trying to learn java and got ALLOT of answers by searching here!