GabeTheGreat73
Lurker
Hello All,
I've been playing around with studio, so i'm a complete beginner. I found a youtube video about SQLite and was able to follow along to create a basic CRUD activity using SQLite. Now I put a new activity with a spinner that lists the names from my db fine (took forever to figure that out lol) but I want it to automatically pull in the rest of the selected record's info into textboxes I placed below the spinner.
For example, my table columns are: Index, Name, Surname, Marks
In my spinner, it lists all items in the Name column (i.e.: John, Susan, Matther, etc)
When I click "John", for example, I want it to put the Surname in a text box called "editText_surname" and to put the Marks in a text box called "editText_marks".
I cant find any examples or videos how to do this... if anyone knows of any, please link so I can learn. Really enjoying learning java basics and playing with android studio... thx in advance!
I've been playing around with studio, so i'm a complete beginner. I found a youtube video about SQLite and was able to follow along to create a basic CRUD activity using SQLite. Now I put a new activity with a spinner that lists the names from my db fine (took forever to figure that out lol) but I want it to automatically pull in the rest of the selected record's info into textboxes I placed below the spinner.
For example, my table columns are: Index, Name, Surname, Marks
In my spinner, it lists all items in the Name column (i.e.: John, Susan, Matther, etc)
When I click "John", for example, I want it to put the Surname in a text box called "editText_surname" and to put the Marks in a text box called "editText_marks".
I cant find any examples or videos how to do this... if anyone knows of any, please link so I can learn. Really enjoying learning java basics and playing with android studio... thx in advance!