There is output to the ListView from the database. How to make it so that by clicking on an element from the list, it is not the position that is transferred to the next activity, but the id of the element that was in its database.
For example:
1 элемент (id из db - 12 --- по нажатию на этот элемент передавало не position(0),а id 12 2 элемент (id из db - 43)--- по нажатию на этот элемент передавало не position(1),а id 43 3 элемент (id из db-145)--- по нажатию на этот элемент передавало не position(2),а id 145 и тд.