Also note that it is better to define what type of data will be in an ArrayList like:
ArrayList myResults
ArrayList myResults = new ArrayList();
Cursor c = db.query(...your Query Parameters here...);
c.moveToFirst();
while(!c.isAfterLast())
{
myResults.add(c.getString(1));
c.moveToNext();
}
No comments:
Post a Comment