I\'m a beginner to android, while setting onclick listener to a button, what does the parameter passed mean:
btn1.setOnClickListener(new OnClickListener() {
OnClickListener()
is an interface. With the new keyword you are declaring a new object of an anonymous inner class that will implements the interface. That s base question for
java
than android. You should consider reading about
java interface