I'm trying to make an app for my parents business, but at this point I found a problem.
I'm trying to get some strings from a SQLite database and to store them into an array.
I'm trying this:
//This opens the db
SQLManager info = new SQLManager(this);
info.open();
String[] data = {"", "", "", ""};
for (int i = 1; i == 3; i++)
{
data[i]=(info.getProduct(i));
}
info.close();
tv.setText(data[0]);
tv.setText(data[1]);
tv.setText(data[2]);
info.getproduct is a method which gets a string from the database. This works fine. The problem is that i can't update the value of the array. It always shows the same.
Any idea?