I created a SQLite database, I want to refer to the parameters. If I used to access them like this:
name.setText(product.getName()); Now, with the help of the cursor, I can refer to the values of the database in this way:
Сursor cursor = db.query("PRODUCTS", new String[] {"NAME", "DESCRIPTION"}, null, null, null); But it works if I myself have entered the values in the database. And what if I get these values from the API (via retrofit)? How to be then in this case?