Android Button: get value? I do not mean the text : I have an android button with a text. When the button is clicked, I want to access the database for which I need an integer associated with the button. I do not mean the text of the button which is visible to the user (i.e. not the string "Save data"). I mean something like the value of the button, which could be an integer (e.g. 17). I am reading [this](https://developer.android.com/reference/android/widget/TextView) since button extends textview. I've scanned the XML attributes but I cannot find anything, does a button in android not have a value that I can fetch in my activity method which is linked to the button? I was thinking about something like casting the View that I get in my activity method to a `(Button)` and then call something like `int my_database_int = button.getValue()` but I do not find anything in the link above and I find it hard to believe that there is no such functionality?

