thats the f of android cause all data retrieved.from db is formatted on
cursor just like classical mysql_query in php
2014-6-3 下午11:56于 "YANSHUO HUANG" <notifications@github.com>写道：

> In src/fr/utt/isi/nomp_mobile/models/Offer.java:
>
> > +	}
> > +
> > +	@Override
> > +	public List<Offer> list() {
> > +		// prepare the query
> > +		String query = "SELECT * FROM " + NOMPDataContract.Offer.TABLE_NAME
> > +				+ " ORDER BY _id DESC";
> > +
> > +		SQLiteDatabase readable = this.getReadableDatabase();
> > +		Cursor c = readable.rawQuery(query, null);
> > +
> > +		ArrayList<Offer> offerList = new ArrayList<Offer>(c.getCount());
> > +
> > +		if (c.moveToFirst()) {
> > +			do {
> > +				Offer offer = new Offer(context);
>
> WTF of JAVA
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mrstrlc-yipeng/NOMP-Mobile/pull/5/files#r13361572>.
>