You need to read the API doc for the getText() method to see how to use it.
What class is the btAfrica variable?


This is confusing. A button has a variable name and it can contain text.