best practice populating ui from database
i have data stored in my database table in my android app i am constructing
the data is arranged as:
brnum / date / machine / ...
001 / 10-10-2013 / 10450 / ...
002 / 12-10-2013 / 12670 / ...
.... / ...... / ..... / ..... / .....
now i want to get on my user interface for the selected line of data:
other info: 00
i created the xml file as needed
i linked my textviews to my class as needed ( ex: TextView datum;
datum = (TextView) findViewById(R.id.boxbrBrdatum);)
i use a class that populates my user interface and makes the necesary calculations
i use another class that read and writes to my database table
what is now the best practice to read the data from the database, transport the whole line of data to the other class and than put it onto my textview variables??
thanks in advance