vendredi 30 janvier 2015

Android: Get random record in SQLite

I fetch records in my SQLite database like this.



spellId = extra.getString("spellId");
DBase db = new DBase(this);
db.open();
String[] data = db.getRecord(Integer.parseInt(spellId));
db.close();


And I'm wondering if I can get random data like this without using raw queries and cursor? Help, anyone? Thanks in advance! :)


Aucun commentaire:

Enregistrer un commentaire