what i'm trying to do is get entries, one-by-one, here's the code.
Teams.Java
public String getData(String key) {
// TODO Auto-generated method stub
String[] columns = new String[] { Key };
Cursor c = ourDatabase.query(DATABASE_TABLE, columns, null, null, null,
null, null);
String result = "";
int iName = c.getColumnIndex(Key);
for (c.moveToFirst(); !c.isAfterLast(); c.moveToNext()) {
result = result + "," + c.getString(iName);
}
return result;
}
the activity
MainActivity.java
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView t1 = (TextView) findViewById(R.id.tvINames);
Teams stat = new Teams(this);
stat.open();
String Names = stat.getName("KEY_TEAMS");
stat.close();
t1.setText(Names);
if the logcat is needed, just tell me.