How to get data from SQL table when clicked on recyclerview item?

  • Thread starter Thread starter Android Central Question
  • Start date Start date
A

Android Central Question

I have one problem.

I made recyclerview and I populate it with information from database.
I also made onclicklistener for every recyclerview item.

I do not know how to get data from database when I click on an item in recyclerview list.

Example: I need to get location from database and return it as a string,but for every item in recyclerview that location is different.
 
I moved this to the Software Development forum for more specific traffic.
 

Forum statistics

Threads
954,895
Messages
6,963,109
Members
3,163,149
Latest member
rfhouser