title: Functions in Android?
body: <p>I am relatively new to programming for Androids and I have a back ground in PHP. I have written a script that at the moment pulls a single row from a database and populates two buttons and a textview. I know what to have another button that when clicked queries the database again and changes the buttons and textviews.</p>
  
  <p>I'm guessing I need to create a function that when the button is clicked it runs the query I already have and the setText of each element again.</p>
  
  <p>How do I create a function I can pass variables to and run from wherever.</p>