I am working on an Android app, and am just learning to program on Android. I have experience in a few programming languages, but I'm struggling to combine functionality across xml and java.
Very simple question I'm sure, but how do I make a button activate a function? I have: "public void function(string a, string b)" with the function inside in Java, and on the xml layout I have <Button android:onClick="function(stringa, stringb)".
When I click the button i get an error saying it cannot locate method "function(stringa, stringb)".