P
P
Pempium42020-04-20 22:10:10
MySQL
Pempium4, 2020-04-20 22:10:10

How to pass db record id from recyclerview to new fragment (client-server)?

I know that with a local database, this is easily done using simplecursoradapter.
But the problem is that in recyclerview I am parsing json data (fields "id" and "name") from the database on the server. And when you click on a certain view of the list, a new request is sent by the selected id to the server, from which all the information comes.
Tell me how to assign the list view exactly the id that corresponds to the record in the database on the server?
If there are other options for solving this problem, I will gladly read it.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question