Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: ITSMISUNDERSIDELOVEUTUBE *Автор: 01e38acffe
Parenqué y Cheirismo Cfrámico: Alfredo Parenqué Página Web 73
pareschi impianti industriali pdf 84
Pareschi impianti industriali pdf 84
Pareschi impianti industriali pdf 84
Pareschi impianti industriali pdf 84
pareschi impianti industriali pdf 84
Pareschi impianti industriali pdf 84
Q:
How to get the value from SQLite DB?
I am new to Android.
I have to get the value from an SQLite table.
I don't know whether I have to use any cursor or to use an Simple Cursor Adapter.
I have to show the data in a listview.
please help me.
A:
You can use SimpleCursorAdapter
Here is an example
(I am just giving the basic and easy steps)
Get all the records from the table and put it in an List
List allRecords = new ArrayList();
Cursor c = db.query("table_name",null,null,null,null,null,null);
c.moveToFirst();
while(!c.isAfterLast()){
allRecords.add(c.getString(c.getColumnIndex("column_name")));
c.moveToNext();
}
c.close();
Intent i = new Intent(this,List_Activity.class);
i.putExtra("allRecords",allRecords);
startActivity(i);
Then get the extra in the List_Activity using
Intent intent = getIntent();
List list = intent.getStringArrayListExtra("allRecords");
for(String string : list){
System.out.println(string);
}
Here you will get the list of your records.
Note: Make sure your database is opened before the time you use the query and the while loop
Mundo afectivo aquele ano, vamos construir uma estrela gigante de 38 metros de diâmetro, com seis metros de fundo, para ser inaugurada em 30 de julho deste ano, no Edifíc
Related links: