I'm new to android (and in general) mobile app development.
When it comes to setting an event listener to, say, a button, what is the difference between setting it in the xml:
android:onClick="blah"
and setting it in the .java file
btn.setOnClickListener(new View.onClickListener)
Any particular time when i should use the former or the latter? Or does it make no difference