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:
and setting it in the .java file
Any particular time when i should use the former or the latter? Or does it make no difference